Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: How to read an email in different languag Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sandya
Newbie
Newbie
Avatar

Joined: 12 March 2008
Location: United Kingdom
Online Status: Offline
Posts: 22
Posted: 26 March 2008 at 5:33am | IP Logged Quote sandya

Hi,my company provide services for russian people.we will get the mails from customers in english as well as russian language.Whenever we will get the mails from russian language we eill get russian font like all Question marks. ????????? like this.
my email with russian language is like this

FirstName:e
LastName:silvester
CompanyName:
Address:168-172 Old street
Address2ndLine:
Town:london
County:london
CountryCode:GB
Postcode:ec1v 9bp
Telephone:
Email:anastasia.minaeva@simplymedia.tv
ShippingFirstName:e
ShippingLastName:silvester
ShippingAddress:168-172 Old street
ShippingAddress2ndline:
ShippingTown:london
ShippingCounty:london
ShippingCountryCode:GB
ShippingPostcode:ec1v 9bp
OrderNumber:159/260308/10
ShopsNameSimplyglobaltv Ltd
URL:http://www.simplyglobal.tv
Custom:
package:?????? ?????? ??????...

------------------------------------------------------------ ------------
????????:     ???????? ??????? ??? ??????????? ????? Wi-fi Simply Set
Top Box
(12 months subscription included)
????:      GBP 199.00
???:      1
????????:      GBP 10.00
?????:      GBP 209.00

------------------------------------------------------------ ------------
????: GBP 199.00
????? @ 17.5%: GBP0.00
????????: GBP 10.00

?????: GBP 209.00

paymentmethod:Online Credit Card

i just need to read this text Wi-fi Simply Set Top Box
(12 months subscription included)
.How to get rid of all question marks and read the text in english.we will get 2 or 3 like this in every mail.Could you please help me this.I need it.i need your help.

Back to Top View sandya's Profile Search for other posts by sandya
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 26 March 2008 at 5:37am | IP Logged Quote Andrew

Please provide us with an example of such message as .eml file. Use Request Support form for this purpose.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
sandya
Newbie
Newbie
Avatar

Joined: 12 March 2008
Location: United Kingdom
Online Status: Offline
Posts: 22
Posted: 26 March 2008 at 6:40am | IP Logged Quote sandya

i kept my problem in support which you sent me the link.Can you please look into that and provide me the solution if you can.I really need that.
Back to Top View sandya's Profile Search for other posts by sandya
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 26 March 2008 at 6:58am | IP Logged Quote Andrew

Thank you for the text file you provided.

As you can see, the text file you provided already contains ??? chars instead of Cyrillic characters. When I asked you to provide us with an example of message as an .eml file, I meant original MIME source of the message which causes the issue.

If your application receives messages through POP3, you may save such message to an .eml file via MailMessage.SaveMessage method.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
sandya
Newbie
Newbie
Avatar

Joined: 12 March 2008
Location: United Kingdom
Online Status: Offline
Posts: 22
Posted: 26 March 2008 at 7:29am | IP Logged Quote sandya

Hi,i posted .eml file in Request support.Could you please tell me the solution?
Back to Top View sandya's Profile Search for other posts by sandya
 
sandya
Newbie
Newbie
Avatar

Joined: 12 March 2008
Location: United Kingdom
Online Status: Offline
Posts: 22
Posted: 26 March 2008 at 7:33am | IP Logged Quote sandya

No need to worry about the question marks,it has been coming like this since one year.these are the mails we are getting from third party,they are mainting shop transactions and sending user information through mail.i just need to read a string after question marks.like Wi-fi Simply set top box (12 months subscription included).But this string also contains 2 or 3 lines in mail.how to read this and store into databse.
Back to Top View sandya's Profile Search for other posts by sandya
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 26 March 2008 at 7:47am | IP Logged Quote Andrew

Thank you for the .eml file you provided. The Cyrillic text anyway contains ??? characters. The plain body part has the following content type:

Content-Type: text/plain; charset=US-ASCII;

The same thing with html body part:

Content-Type: text/html; charset=US-ASCII

US-ASCII charset can't contain Cyrillic characters. This message is composed incorrectly.

If you take a look into the .eml file, you'll see ??? chars. MailBee.NET as well as any other component or application is not able to convert ??? to Cyrillic text.

You should look for the reason in the application which was used to compose that message.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
sandya
Newbie
Newbie
Avatar

Joined: 12 March 2008
Location: United Kingdom
Online Status: Offline
Posts: 22
Posted: 26 March 2008 at 7:59am | IP Logged Quote sandya

no,i do not want to convert ????(question marks) to be into any other language.I just want to read the text which is after Question marks.U could see the text after question marks like Wi-fi Simply Set top box (12 months subsscription included).i just want to read the text after ????.every time the description comes it is always ????? after the string in english.i just need english text after question marks.so Could you please tell me how to read a text in english after Question marks.
Back to Top View sandya's Profile Search for other posts by sandya
 
sandya
Newbie
Newbie
Avatar

Joined: 12 March 2008
Location: United Kingdom
Online Status: Offline
Posts: 22
Posted: 26 March 2008 at 8:09am | IP Logged Quote sandya

I just need the text Wi-fi Simply Set top box (12 months subsscription included).I want to read this text from .eml file.Could you please tell me how to read this.
Back to Top View sandya's Profile Search for other posts by sandya
 
sandya
Newbie
Newbie
Avatar

Joined: 12 March 2008
Location: United Kingdom
Online Status: Offline
Posts: 22
Posted: 26 March 2008 at 9:32am | IP Logged Quote sandya

Hi Andrew,Could you please tell me how to read a text after question marks.I really need that one.
Back to Top View sandya's Profile Search for other posts by sandya
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 27 March 2008 at 2:51am | IP Logged Quote Andrew

Actually, this task is not related to MailBee.NET Objects directly, this is a parsing text issue and doesn't matter if you got this text from an e-mail message or from a simple text file. We provide support for issues related to our products only.

However, to get that text, you should a bit improve the parser you implemented earlier.

The following string:

????????:     ???????? ??????? ??? ??????????? ????? Wi-fi Simply Set

has two tokens:

- ????????
-     ???????? ??????? ??? ??????????? ????? Wi-fi Simply Set

you need to get just "Wi-fi Simply Set" from the second token. So, you should just replace all ? chars to spaces and then trim the resulting string. This is the simplest way.

To implement a smarter parser, you may use regular expressions.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide