Displaying while changing charset for chinese mail?

hi,
It seems pretty weird but when I change the charset of a mail message e.g from big5 to gb2312 and send it again to outlook express the chinese characters don't seem to be the same. If however the charset is not changed the email send seems to be fine.
If the charset is changed and the body is written to a text file using the new charset every thing seems to be fine too.
Is it something to do with the outlook settings or with the application itself?
It seems pretty awkward to me since I feel if it is working in the text file the conversion should also work while sending a message.
Any ideas?
regards,
Khurram

hope it works:
messageBody.setHeader("Mime-Version" , "1.0" );
messageBody.setHeader("Content-Type" , "text/plain");
messageBody.addHeader("Content-Type", "charset=UTF-8");
// You can see chinese with this
messageBody.setHeader("Content-Language","zh-cn");
messageBody.setHeader("Content-Transfer-Encoding", "quoted-printable");
I try to do it ,and it works fine

Similar Messages

  • Can't display archive change documents for agreement (COND_B)

    Hello,
    I want to display archive change document for object class : COND_B (agreement) via transaction MEB3:
    The archive works fine, and I can found the archive change documents form SARA.
    (Archive Objetc = CHANGEDOCU
    Archive info structure = SAP_CHANGEDOCU2 (is active))
    But the display from the application transaction : MEB3 doesn't work.
    In the DEBUG:
    the Function module is called automatiquely: COND_B_DISPLAY_DOCUMENT
    THEN SUBMIT RSSCD100
    THEN The function module is called with the no parameter READ_CHANGEDOCU (ie with space value)
    THEN the program reads only from DB
    Question : HOW I oblige the program to read from the archive  (READ_CHANGEDOCU = 'X') ?
    I checked these SAP notes 1050935,1299903, 1308024, 1128954, 1050335
    but no results.
    May be I forgot some customizing ( SARA,, AOBJ )?
    Thanks for your help.

    Hi,
    As I understand, the change documents archived using the CHANGEDOCU archiving object are no longer available using the application object.
    Refer to Notes 1257133 and 140255 where they mention the above point.
    If you want to read change documents along with the application, then you must first archive the change documents along with the application.
    In your case, for agreements, you should use object SD_AGREEM so that the change documents also gets archived along with the agreements. Refer to note 761281 to check whether the archiving class CHANGEDOCU is already defined along with object SD_AGREEM in your system.
    Hope this helps,
    Naveen

  • Blank spaces while using GUI_DOWNLOAD for Chinese characters

    Hi,
    While using GUI_DOWNLOAD for chinese characters I have used a code page option of 8300 for Chinese.
    The file which is getting downloaded in a notepad has some Chinese characters coming under some headings.
    After that columns other columns are getting shifted towards the right.
    This is working correctly for English characters.
    Can someone please help me.
    Now I am using CL_GUI_FRONT_END_SERVICES=>GUI_DOWNLOAD.
    What special options should I pass now.
    Regards,
    Subhashini

    Hi,
    I only solved my problem by using different code pages 8400 and 8300 for Chinese and Taiwanese characters.
    I fixed the lengths of the fields by converting them to hexadecimal string and back to string using these function modules as below.
    DATA:lv_xstring TYPE xstring,
           lv_temp TYPE string.
      DATA: lv_conv TYPE REF TO cl_abap_conv_in_ce.
      lv_temp = p_name.
      CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
        EXPORTING
          codepage_to      = p_codepage
          unicode_string   = lv_temp
          out_len          = p_outlen
        IMPORTING
          xstring_stream   = lv_xstring
        EXCEPTIONS
          invalid_codepage = 1
          invalid_string   = 2
          OTHERS           = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
       EXPORTING
         from_codepage = p_codepage
         in_xstring    = lv_xstring
         out_len       = p_outlen
       IMPORTING
         out_string    = p_string.
    Create a Conversion Instance
    lv_conv = cl_abap_conv_in_ce=>create(
    encoding = p_codepage
    input = lv_xstring ).
    v_conv->read( IMPORTING data = p_string ).
    Regards,
    Subhashini

  • Need to disable availability check while changing 'Reason For Order' Field in Retail Tab

    While change of STO (Me22n) I want the availability check to be disabled when a change to 'Reason for Oder' is made in the Retail Tab in the item detail.
    Let me know if there is any BADI/ User exit or enhancement available where i can do this customization.

    Hi Reddy,
    Try Transaction Variant, you can customize the screen using this tool.
    Basically, you customize the screen (hide, make it required, visible etc) then
    save it as screen variant and define a new transaction code to it.
    So for your user, just give them this new transaction code (instead of SAP standard).
    Detail about transaction variant can be checked on :
    http://help.sap.com/saphelp_crm50/helpdata/en/7d/f63a0a015111d396480000e82de14a/frameset.htm
    Hope this helps,
    Gun.

  • Setting the Charset for outgoing mail in Mail

    When I send mails to windows-systems, the Outlook program gets the message with wrong characters. Especially of course the special danish characters, but also other information goes wrong. F.ex. grey lines hows up where I certainly did not put it!
    I have noticed, that the header of the message from Mail is like this:
    --Apple-Mail-1--672517002
    Content-Transfer-Encoding: 7bit
    Content-Type: text/plain;
    charset=US-ASCII;
    delsp=yes;
    format=flowed
    Sometimes like this:
    --Apple-Mail-9--596884052
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain;
    charset=UTF-8;
    delsp=yes;
    format=flowed
    When using the HTML functionality in Mail I get headers like this:
    --Apple-Mail-2--619494695
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain;
    charset=WINDOWS-1252;
    delsp=yes;
    format=flowed
    And the HTML-mails show's correctly!
    I guess it is an charset issue, but how can I control that maually?

    Open your Mail.app
    From the top of your screen choose Window>Connection Doctor.
    Double click on each server and make sure the password field is filled out, (your smtp server is likely to be missing the password)
    Enter the password into the field you find empty and close the preferences windows (saving changes if prompted) and close the Connection Doctor.
    Test to make sure you are fixed.
    If issues continue its going to be an issue with Keychain Access and you will need additional steps.
    EE

  • Problem while changing data for STO Assign Delivery type and checking rule

    Hi All,
    In Set up STO..... executing Assign delivery type and checking rule.
    I am trying to add values to Rule for Adoption of ATP Results in Purchasing(REVFE),Delivery Type for Stock Transfers Within a Company Code(LFART1) and another two more fields..After entering the data When i clik Save button... it shows "Data was Saved".But its not showing when i went back and come
    I have checked in debugg mode and table T161V table ..waht ever i entered its not saved in Database table.
    We have checked in another system its working fine..
    Can anyone please help me  on this?

    Solved by posting in OSS.
    The below include has to be uncommented.
    While doing upgrade this include  L0ME6F00 has commented INCLUDE L0ME6F99 has uncommented
         view related include-files   (never change, please)        *
    *{   REPLACE        CB2K900006                                        2
      INCLUDE L0ME6F00.      " subprograms

  • Changed password for e-mail account and cannot send e-mails

    Went into setting, "mail, contacts and calendar" under my e-mail account I changed the password, but now I can't send any e-mails out.  Checked with comcast and all the settings are correct.  What is the problem?

    If your email provider requires the password for sending emails then as well as changing it on the account when you tap on it in Settings > Mail, Contacts, Calendars, you may also need to tap on SMTP (under the 'outgoing mail server' heading) on that popup screen and then tap on the outgoing server name on the next screen and update the password there as well.

  • Any way to get the Mail icon with changing number for incoming mail in ...

    Toolbar, the big one across the top of my screen. I have a lot of other handy little items in there, Mozy, Growl Plaxo, world clock, ical, in addition to the Mac stuff. If I could see how many mails I have up there, I wouldn't need to check my dock or open Mail.

    Look for something at VersionTracker or MacUpdate.

  • PDF problem while using Safari for e-mail

    I'm not sure where to put this question, so it ended up here.
    Sometimes I receive a PDF file as an attachment to e-mail. I save it on the desktop and click it to open it. What happens is that for some reason "TextEdit" automatically tries to open it, with the result that all I get is a bunch of code--not the translated contents of the file at all.
    Why doesn't it automatically open it in Acrobat Reader? That's what happens when I open a PDF file I download from the internet. I can't figure out any way to connect attached e-mail files to Acrobat Reader so it will open them translated. My MacLlinkPlus translator doesn't recognize PDF files as needing to be translated.

    I woudl need to see the form and data file to debug this ...can you send the assets to [email protected]? Please include a description of the issue you are facing with your email.
    Paul

  • No member Disk displayed while creating Diskgroups for new ASM instance

    Have installed CRS
    Have installed DB software
    Invoked dbca to create asm instance
    Instance created
    Disk members not displayed for creating disk groups
    OS is Hp ux 11.23

    The most likely reason on HP/UX is the permissions on the devices, all the devices to be used by ASM (including the devices for alternate paths) should be set to oracle:dba (or what ever user ASM is installed under) and chmod to 664.

  • Use educational license while changing schools for ~ 3 month.

    I finished school in Germany, and this is basically my last month there. However I will start going to University in about 3 month. Do I have to be afraid, that my educational license might be canceled?

    HI PeKayGe,
    Your Educational License will stil work fine as you will be a student while stuyding in the University .We hope that the University you are going to join is in Germany only ?
    Regards,
    Kartikay Sharma

  • Changing everything for old history

    Hello,
    I am abandoning my old account, and I would like to know if there is any way to change the display name associated with all of the old history/records,including the records on other user's computers I've chatted with? I know how to change it for recent messages, but these messages are over a year old.Will changing my display name change it for all history saved on both machines? Thanks

    You can't link to your new account (you created a new iTunes account, you didn't update your existing account ?) until removed removed the activation lock to your old account - you can then link it to your new account in Settings > iCloud.
    If you can't get the password for your old account reset via http://iforgot.apple.com then try contacting Support in your country, after confirming your id and that it's your account they should be able to reset it for you.
    Contacting Apple about account security : http://support.apple.com/en-us/HT5699
    If your country isn't on that page then try this form and explain and see what they reply with : https://ssl.apple.com/emea/support/itunes/contact.html

  • HT201269 In Iphone5 while Mail is reviewed and transfered to folder, for next mail folder list position changes. How to fix this error

    In Iphone5 while Mail is reviewed and transfered to folder, for next mail folder list position changes. How to fix this error

    In Iphone5 while Mail is reviewed and transfered to folder, for next mail folder list position changes. How to fix this error

  • I need to change my iCloud e-mail to my new e-mail because my old e-mail account has been deleted and i haven't been using it for a while.

    i need to change my iCloud e-mail to my new e-mail because my old e-mail account has been deleted and i haven't been using it for a while.
    my new e-mail is my apple ID but my iCloud one wont change over.

    If the old ID ("email address") is an earlier version of your current ID, try temporarily recreating the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Send a mail with change history while changing the Routing (T-Code CA02),

    Hi All,
    I need to send a mail with change history while changing the Routing (T-Code CA02), Please let me know how can implement this scenario.
    I am trying to find out any workflow is there for the same but we have workflow for Routing creating and Display, we donu2019t have workflow for change.
    Please suggest meu2026u2026u2026u2026
    Thanks,
    Amjad.

    Hi All,
    I need to send a mail with change history while changing the Routing (T-Code CA02), Please let me know how can implement this scenario.
    I am trying to find out any workflow is there for the same but we have workflow for Routing creating and Display, we donu2019t have workflow for change.
    Please suggest meu2026u2026u2026u2026
    Thanks,
    Amjad.

Maybe you are looking for