Special characters in mail

Hi,
I m working on mails application and the subject part of the header is encoded .
It is like Subject: =?iso-8859-1?q?,=B8,.=B7=B4akkentech=20=20Mail=20sent=20for=20testing=20(?=
some time it is utf-8 encoded .
I want some code where I can decode these into normal characters Whether these part is in the body or subject
Thanks in Advance...
Manohar

Thanks for the screenshot!
It looks like Latin-1 text is being read as if it were UTF-8 by a defective UTF-8 converter, as used to be found some time ago in Windows Outlook and IE.   For example the sequence "éro", which is Latin-1 bytes E9 72 6F, is defectively converted to E9 B2 AF and then read as UTF-8, which is the chinese character

Similar Messages

  • Special Characters "ß-" in Mail (iOS)

    I'd wrote a mail with the cityname Geiß-Nidda and the message on the iPad (send mails) is cut off.
    The text ends at Geiß-
    Nidda and the text behind is missing.
    I use IMAP and on my MB Mail everything looks fine. My iPhone also cut the mail.
    Is this a bug in iOS 4.3.2?
    Regards
    Robin

    Now that I know the issue, that the text is cutted...
    But there was no sign that this will happen, so I "just" wondered that it happened.
    The main issue was the question why iOS won't save the correct mail.
    And only because I could check the mail via Mail on my MacBook, I could check that it was send out correctly.
    If you only got the iOS-Device you think the mail will shown the same way to your recipient.

  • Javamail API doesn't support special characters in attachment file name

    Hi,
    We are using Java Mail API to retrieve the attachment's file name, but it sometimes returns the file name as junk character (if the attachment contains special characters) and it is not able to return original file name for some attachments:
    Our code sample :
    void getFileName(Part part) {
    String fname=null;
    fname = part.getFileName();                          
    Actually the problem is with the attachment file name which contains special character. For example below is the attachment file name (please find the sample attached file which is causing this issue):
    Sample – 1234abc.doc
    From above you could see the file name contains a special character (Sample – 1234abc.doc), i.e. The character ‘–’ is not a regular hyphen character, it’s a special character. Hence the Java mail API returns the name as below:
    Sample ? 1234abc.doc
    So the special character is being replaced with ‘?’ symbol. But if I store this file in local folder and try reading the file name using Java IO packages, it returns the file name without adding ‘?’ symbol.
    Is there any way to handle such kind of special characters in Mail API?
    Regards,
    Vinodh

    We dealt with this issue in a private email conversation.
    JavaMail is returning the correct data for the filename.  The problem is in the way the filename is being displayed.

  • Special characters change in e-mail body

    When I receive e-mail with ISO 8859-2 charset the special characters (áéőüú etc.) change into something more weird, unreadable characters (ĂĄ). However, mail preview lines show them correctly. I use English language for the phone (as Hungarian is not available), keyboard is Hungarian.
    Anybody facing the same problem? Any solution?

    If you set the document to be a HTML type, then you can use HTML scripting to set
    the font.
    Create send request
       send_request = cl_bcs=>create_persistent( ).
    Create html content:
        mail_line = '.mail TBODY,{font-family:verdana;font-size:10pt;}'.
        append mail_line TO mail_text.
        ... (your text)
    Create document with type 'HTM' and provide your HTML scripting
          document = cl_document_bcs=>create_document( i_type    = 'HTM'
                                                       i_text    = mail_text
                                                       i_subject = 'Subject' ).
    Add document to send request
          CALL METHOD send_request->set_document( document ).
    Send document
          CALL METHOD send_request->send( ).

  • Mail.app hang if mail attachment have special characters in file name

    Hello,
    I have upgraded to 10.5.1 from last version of Tiger.
    After upgrade is not possible send message with attachment which have a czech special characters in file name (like á, í, é, ý, ú, ů, ě, š, č, ř, ž) with Mail.app. If I try it, CPU is overloaded and I must kill Mail.app process.
    The same problem have my friends who are running a clear installation of Leopard 10.5.1.
    Thanks for correction.

    I have the same problem with Hungarian chars. I tried out Tomas suggestion and it really worked. It is so dissaponting to have this kind of bug in a system like this. They never tested against this situation.
    I hope somebody at apple read this discussion and somehow this will be fixed in the near future.

  • HT1146 Just started using Apple mail.  Trying to set up email folders with Company/Company P.O. and it won't work.  Went to Edit and added special characters and it still won't work.  What am I doing wrong or can this not be done.

    Just started using apple mail.  Trying to set up email folders with example:  Company/Company P.O.  It won't let me do it.  It will not allow / or . .  What am I doing wrong or can this not be done.  I tried to use the Edit menu and adding the special characters, but it still won't work.  Please advise.  mmather

  • Mail, can't send, can't type special characters

    I can't send mail but I can recieve mail. I can't reply to email. When opening a new mail I can add the address and subject line but when I type in the body of the email I start typing and as soon as I hit the space bar or any special characters it freezes up and I can't do anything. I've rebuilt the the mailbox, I've checked my quotas and they are fine. I can also get on the internet. This happened to me before but forgot what the problem was. The other day I updated to the latest OS X but everything was ok till yesterday when I took my laptop to our other location where I'm wireless through a cable modem. I have the same connection at both locations. I am using Mac Mail version 2.0.5 This is driving me crazy that I can't find an answer. Please, can anyone out there help me, I sure would appreciate it.
    [email protected]
    PowerBook G4   Mac OS X (10.4.3)  
    PowerBook G4    
    PowerBook G4    

    Thanks
    I just had another hunt around looking at posts and discovered that it was because I recently changed to BT Infinity and they had a block on.
    I didn't even think to question the ISP.
    https://discussions.apple.com/message/21173608#21173608

  • Mail unformatted - no special characters

    Hi, There are some emails were on the preview I can see all special characters in the preview. As soon as I open the message it turns to a bunch of other simbols and it's very hard to make any sense of it. Since I speak portuguese there are some special characters we use while writing.
    My iPhone is set to English language, keyboard is Portuguese Brazil and Region format is also Portuguese Brazil.
    I'm using gmail account set as Exchange.
    Any ideas on how to solve it ?
    Thanks

    You should contact your hosting provider. It sounds like the web server is not properly configured to serve UTF-8 encoded HTML files.
    You can publish to a free trial site on Adobe Business Catalyst to confirm that a web server properly configured to serve UTF-8 encoded Unicode HTML files properly serves up all the characters on your site.

  • Unable to call report from jsp - password contains special characters

    Hi
    I used the following url to call my oracle report from my JSP webpage but got the error mentioned below. It seems that this error occurs when i use the login id with password that contains special characters only. How can I overcome this problem?
    Any help appreciated. Thx.
    Regards,
    Siti
    URL used: -
    "http://pc-325:8889/reports/rwservlet?server=pc-325&report=prodeff80120i&P_JDBCPDS="+vlogin1+"&destype=cache&desformat=pdf&paramform=no&p_type="+p_type;
    Error encountered: -
    REP-163: Invalid value for keyword DESTYPE.
    Valid options are FILE, PRINTER, MAIL, INTEROFFICE, or CACHE.

    Hi Stefan,
    Many of the customers are located in hungary and they have created the userid using their keyboard. Hence for now I already have a userid with that hungarian characters, in the SAP system.
    Only I would request for the help on how to interface these characters in SAP Business connector to call RFC.
    Thanks,

  • Html special characters

    when using the Dreamweaver 'Set Text of Layer' behavior,
    Dreamweaver correctly converts all html
    special characters, such as accents like � and &,
    and quotes and double quotes, so that it is safe
    as a javascript string, and will display properly.
    I am trying to figure out what PHP function can do the same
    encoding, to simple text files (textEdit
    on the Mac).
    I have tried htmlentities(), but it does not work, accented
    letters like � just desappear from the
    string.
    I have tried htmlspecialchars() and it does not work
    either...
    I have tried about 10 others functions found on Google but
    nothing works.
    Anybody knows what exact function Dreamweaver uses to do this
    conversion?
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

    should be > to >
    < to &lt;

  • Special characters added in offline approval email

    Hi all,
    We are on SRM 5.0 SP13 ,ECS
    We are facing an issue with the outbound emails sent out from SRM system for offline approval for both shopping carts and PO.
    In the main body of the  email,some some special characters like ^A are being added at the start of each line.
    We have been observing this issue lately after the upgrade of our mail server.
    Has anbody come across such an issue in SRM 5.0??Please advise /share your solution/provid some insights.
    Thanks!

    Take a look at the note and see if it applies to your case.
    1019942     wrong encoding for HTML formatted emails

  • Problem with Special characters(Russian) using DynamicConfiguration

    Hi,
    I have a mail-RFC scenario where I am using adapter-specific message attributes and DynamicConfiguration to retrieve mail subject.It works fine.
    We have a problem when the subject contains Russian special characters.In this case,whole mail subject gets converted into an irrelevant string.
    Can anyone please suggest how to handle special characters in DynamicConfiguration using ASMA .
    Thanks a lot for your help in advance.
    Regards,
    Shweta

    Your UDF could be something like this:
    String output = null;
    String strs[] = input.split("\\?");
    String charset = strs[1];
    String encoding = null;
    switch (strs[2].charAt(0)) {
         case 'Q' :
              encoding = "quoted-printable";
              break;
         case 'B' :
              encoding = "base64";
              break;
         default :
              break;
    String subject = strs[3];
    try {
         InputStream is = new ByteArrayInputStream(subject.getBytes());
         InputStream dis = MimeUtility.decode(is, encoding);
         ByteArrayOutputStream out = new ByteArrayOutputStream();
         byte[] b = new byte[4096];
         for (int n;(n = dis.read(b)) != -1;) {
              out.write(b, 0, n);
         output = out.toString(charset);
    } catch (Exception e) {
         //implement catch...
    return output;
    where input is the input string.
    For test purposes, use
    String input = "=?KOI8-R?B?Rnc6IDEwMjEwMTMwLzA1MTEwNi/wMDE3NDkzLw==?=";
    or
    String input = "=?utf-8?Q?Auftragsbest=C3=A4tigung?=";
    Regs,
    Henrique.

  • Special Characters in Links

    Hello,
    I work for a software company which offers a web application - an e-mail subscription management service. Our application sends e-mails out to subscribers which include links back to the websites of our clients. The problem we have encountered with some frequency is that some versions of Safari do not seem to like encoding of special characters in URLS. All of the links we send have encoded special characters in them. For example:
    http://service.govdelivery.com/service/edition.html?emailtype=subscription&format=HTML&code=MNMMCD5&date=2006-06-21 00:00:00.0
    We encode each "&" as a character entity in the URL. When encoded this way, the links do not work for many Safari users. If we remove the encoding (character entity) and simply insert an "&", the links will work for them.
    The problem is that the encoded version is the WC3 compliant one. It is not recommended to use special characters in URLs, such as < or &. Is anyone familiar with this issue? Is this true across all versions of Safari?
    Thank you for your help.
    Gabriel Zeck
    GovDelivery, Inc.

    We encode each "&" as a character entity in the URL.
    When encoded this way, the links do not work for many
    Safari users. If we remove the encoding (character
    entity) and simply insert an "&", the links will work
    for them.
    The problem is that the encoded version is the WC3
    compliant one. It is not recommended to use special
    characters in URLs, such as < or &. Is anyone
    familiar with this issue? Is this true across all
    versions of Safari?</div>
    I'm not sure if it is the Mail app or Safari which does this. Whichever, it is too clever by half. If it comes across a &, it changes it to %26, which is fine. But if it comes across a %26 it will re-encode the % and produce %2526, which of course is not.

  • Need help in setting file name with special characters in attachment

    Hi
    We have a requirement where we need to set the file name that contains special characters (like Russian) and send mauil using Java mail.
    If we set the file name as such, the attachment in the email contains garbled filename
    Can you pl let me know how to resolve this?
    We should use the file name as attachment name and this will have say special characters. The receiver who gets the mail should get with the correct attachment name
    One important point.. the attachments are opened from MS outlook.
    Thanks and regards
    Ram
    Edited by: 884910 on 13 Sep, 2011 5:00 AM

    Read the FAQ carefully. You don't need to call encodeText unless you're using a really
    old version of JavaMail.
    And, it depends on whether the mail reader you're using is handling encoded parameters
    according to the (new) MIME standard, or according to the (old) non-standard hack.
    Sadly, without knowing what mail reader the recipient is using, it's impossible to use
    encoded filenames that will work everywhere.

  • Problems with Special Characters on Exchange Email

    Hello:
    People I have a issue with our Corporate Email on my Iphone. We use Exchange 2003 and we have users with special characters on his emails address.
    I receive fine the email, just appear a errors on the display name. The issue is when I try to reply thie email. A error message popup said:
    Invalid Address
    "email with special characters" does not appear to be a valid email address. Do you want to send it anyway?
    If I press Yes, Iphone try to send the message But I receive another error message:
    Cannot send Mail
    An error ocurred while delivering this message.
    Any Help or Idea?
    Here My Email Configuration
    Email = Email
    Server = Server IP
    Domain = Work Domain Name
    Username = my user id
    Password = my password
    Description = Work
    Use SSL = ON
    S/Mime = Off

    When I Said "we have users with special characters on his emails address" its mean users with ñ,ó, ú, Ñ on his emails address. 
    When I said "just appear a errors on the display name" I mean characters like Âñ¡
    Thanks

Maybe you are looking for