Multiple language subject and email content

Hi all,
I encounter a strange case that an email with simplified chinese characters and traditional chinese characters in it's subject and content, when I use the message.getSubject() to get the email subject, it returns me with disorder characters. The email's subject is sent out encoded using GB2312 even it contains GBK characters. I try to send email of this case to gmail, and it display well. How can I deal this case?
the email's body like this:
Received: from usmail.wisagetech.com ([64.106.250.140]) by geneva.gearteks.local with Microsoft SMTPSVC(6.0.3790.1830);
     Fri, 2 Apr 2010 18:11:59 +0800
X-Spam-Status: No, hits=0.0 required=5.0
     tests=TOTAL_SCORE: 0.000
X-Spam-Level:
Received: from mail-vw0-f54.google.com ([209.85.212.54])
     by usmail.wisagetech.com;
     Fri, 2 Apr 2010 03:10:49 -0700
Received: by vws17 with SMTP id 17so951956vws.27
for <multiple recipients>; Fri, 02 Apr 2010 03:10:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:received:in-reply-to:references
:date:received:message-id:subject:from:to:content-type;
bh=VRuGh5L+ZSGKfX2qmki2hkGt3HVgOCGayiSOIONYqUI=;
b=VAK+uZwoZncjuhespCvQ2kcBN+yHRWV8/tr3AEe/g5njztwxW7jhddLqaMmjN6pepc
HYb9ZgduukMczU2g34QDFy8uCYgFW4sX47+6EfvoJUqVbAitM7x/oVzf5V9Y4NsudHGe
kZBvNz4cBwItTEYOkv+Dx2sBkB5LtXgNQtUHI=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
b=ZyqKhacRCpMTVmHoDj3mchZpdR1vZCPeAwdR0IHWfoijtnUFqr2VgCAmD3JVrOE5wV
o8RlMdj7ZghbgTgZucI4vF/Ow/zYGSATGm5jIhisUQBqOO9iJB+Du9V52SVDL7aA9iiM
fotj902411m82E0NsIU/FADw0S52VbSAhrACI=
MIME-Version: 1.0
Received: by 10.220.168.139 with HTTP; Fri, 2 Apr 2010 03:10:49 -0700 (PDT)
In-Reply-To: <[email protected]>
References: <[email protected]>
     <[email protected]>
     <[email protected]>
Date: Fri, 2 Apr 2010 18:10:49 +0800
Received: by 10.220.125.68 with SMTP id x4mr1042513vcr.182.1270203049077; Fri,
     02 Apr 2010 03:10:49 -0700 (PDT)
Message-ID: <[email protected]>
Subject: =?GB2312?B?R09PR0xF0rKvgr/xzbbL3w==?=
From: shunhao chen <[email protected]>
To: [email protected], Eric Chen <[email protected]>
Content-Type: multipart/alternative; boundary=001636c934c5886ba804833e3111
Return-Path: [email protected]
X-OriginalArrivalTime: 02 Apr 2010 10:11:59.0312 (UTC) FILETIME=[EE6F9D00:01CAD24C]
--001636c934c5886ba804833e3111
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: base64
yOfM4qGjCgpnb29nbGXSsrfov/HNttRWoaMK
--001636c934c5886ba804833e3111
Content-Type: text/html; charset=GB2312
Content-Transfer-Encoding: quoted-printable
<div class=3D"gmail_quote"><div class=3D"gmail_quote"><div class=3D"gmail_q=
uote">=C8=E7=CC=E2=A1=A3<div><br></div><div>google=D2=B2=B7=E8=BF=F1=CD=B6=
=D4V=A1=A3</div></div></div></div>
--001636c934c5886ba804833e3111--

Use the getHeader method to get the raw value of the Subject header,
then write your own code to scan the subject, find the encoded parts,
and decode the encoded parts, substituting the charsets you know the
subject text should be using for the ones the text says it's using.
Or, convince the person who owns the program that created the message
with incorrect charset information to fix their program so you don't have to
work around their mistake.

Similar Messages

  • Robohelp 10 Translating Content(topics) into Multiple Languages (French and many more)

    Hi Every one,
    Do any one know, how to translate whole content(TOC-Topics) into multiple languages with the help of Robohelp 10. Is it possible to translate data to other languages such as French, German, and Spanish.
    Please provide proper solution for the same.
    Thank you.
    Regards,
    Nutan Shinde

    Are you asking if Rh does the transalation for you? If so the answer is no. No help authoring tool does that.
    The translation process is covered in a number of threads on the forum.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Customise EOP Spam Notification End-User email address and email content

    Hi
    We are using EOP with our on-premise Exchange 2010 environment. 
    I am rolling out EOP and have the following two (simple) questions, regarding the Spam Notification email that is sent to end-users:
    1. Can we edit the email address that sends the Quarantine notification email? Or must the email come from [email protected]
    2. Can we customise the Quarantine email that is sent to the End-user (with our company logo)?
    From my experience and understanding, I believe the answer for both is NO, but my customer is adamant that editing the email address and customising the email content is possible.. Please advise.
    Thanks
    Ron

    The safelist/blocklist is tied to one email address. However, if you enable email alias consolidation done by LDAP and leveraging off of the Active Directory, then you may be able to achieve what you want.
    The safelist/blocklist comes into play with respect to anti-spam results. The email alias consolidation should occur much earlier.
    So, see if you can get email alias consolidation using LDAP/Active Directory working and it should address the safelist/blocklist thing.

  • Managing TIFF and email content?

    Hi, Has anyone developed/used an application in 9iFS which need to upload email content and also TIFF files from scanned documents? I need to propose a framework for handling this data , searching it, and displaying it.
    Any ideas amongst the iFS Gurus?
    many thanks
    Phil

    Phil,
    I think we may be able to assist you there, we have been developing with iFS for the past year and have created an application which sits ontop of iFS providing a user friendly environment through the browser. We have also integrated this with a scanning solution for the purpose you describe.
    If you want ot discuss more give me a call, 01473 820320. I'm out of the office Wednesday afternoon so you could speak to Chris Mayhew on 01473 820321.
    Regards,
    Bernard Wright
    Technical Director
    www.serengeti-systems.com

  • Multiple language support and cookie

    We are developping an application with the help of Oracle Portal (9ias V2) new release.
    We use this API "wwctx_app_language.set_language" to set the language chosen by the user during
    connection to support multiple languages. When he navigates, we use this API
    "wwctx_api.get_nls_language" to know which language has been set to display the
    contect according to the language chosen during the connection. But we notice that
    the API has not properly set the session. As everytime it displays in English however the
    user has chosen some other language. Whether there is any other solution to bypass this problem (with
    the help of cookies,...etc.)
    Thanks in advance

    Not a trivial task. You will essentially have to create a UFL that converts wide char to MBCS and passes it back to report formulas. E.g. all of the fields that need to be translated will have to be in a formula - that is how UFLs work.  
    For more discussion, see these forum threads;
    Multiple language support
    Crystal Reports localization issue
    English resource files
    Also, see this help file:
    http://msdn.microsoft.com/en-us/library/ms227600(VS.80).aspx
    Ludek

  • Multiple users/computers and email

    Hi folks,
    At home I've been using BT Broadband and an iMac for 4-5 years. Three user accounts each with own email address. Just got a new iMac and have run the standard Apple "migration" from the old to the new machine. Seems to have worked ok - most of it.
    But I want to keep the older machine so we're not always tripping over each other to do this, that or the other. I'm running wireless. Same user names, passwords, etc on both machines. But Apple "Mail" and/or "BT Broadband/Homehub" is only picking up new mail on the older machine.
    I can't find definitive guidance on setting up identical mail on both machines. I've found very brief reference to ".... router capable of sharing the connection, also known as network address translation (NAT) or 'IP masquerading' " or using Apple's "MobileMe". But not anything practical, helpful or solution oriented!!!! Maybe I'm barking up the wrong tree. Has anyone got a simple answer or a point in the right direction?

    You need to have the accounts active only on the machine you want to receive the mail. If you have all the accounts active on the old machine, that machine will collect the mail and delete it from the BT server.
    1   You need to delete the accounts from the old machine which you no longer need to use on that machine (you can transfer the messages to the new machine if you wish).
    2  Then make sure the accounts on the new machine which you wish to use there are active.
    There are no issues with using multiple machines on the same router. I do that here. If you can browse on both machines you have the connection, so the rest is just a setup issue.
    You may need to manually re-set the Mail set up on the new machine as the Apple "migration does not always get this 100% with passwords, etc.
    If you need more help, post back.

  • JavaMail: data type for storing subjects and message content

    Hello,
    I am writing a JavaMail program which gets incoming emails.
    I need to retrieve the subjects of the emails which are codes (ABCDEF, for ex) and insert the corresponding message body in the database if one code matches one in de database (DB). The subject codes are not unique.
    For example:
    - Message 1 on 12/12/2007
    Subject: ABCDEF, Message Body: You need to come soon
    - Message 2 on 13/12/2007
    Subject: ABCDEF, Message body: Sorry I was late
    - Message 3 on 14/12/2007
    Subject: ABCGHI, Message body: We'll have Chrismas party at your place
    My questions are:
    1. Should I retrieve all messages at a time, get the subjects codes and then do the checking in the DB?
    2. If yes, what kind of data type should I use to store the subject codes and the message body in order to guarentee that the correct corresponding message will be inserted in the DB once one subject code matches in the DB.
    ( I thought of a HashMap<subject_code, msg_content> but the subject_code are not unique)
    All suggestions are really appreciated. Please help!
    Marianne

    If you get all the messages at once, store them in
    an array or list, and then iterate over them to
    query the database, that would work. The message
    data won't be fetched from the mail server until you
    access it for each message. If you want to reduce
    the time you're connected to the mail server (maybe
    not important), you'll need to copy the messages
    into memory.
    One of the big issues to consider is what you want
    to happen in the event of a failure. You can't include
    the mail server operations in your database
    transaction so you probably want to update the
    database before removing the messages from
    the mail server. But you'll need to handle possible
    duplicates if your application fails after the
    database transaction and before the message
    is removed from the mail server.

  • ID and email content

    I'm using ID/CS4 to generate an email that will be attached to an moderately sized CRM list. I will send this email using Mozilla Thunderbird. Obviously most on the list won't have ID. Will simply converting the ID file to a PDF allow it to be attached? And readable to those w/o ID?

    PDF is universally readable, assuming each user has a reasonably updated version of Acrobat Reader. It's safe to assume that all but the very most Luddite or peculiar-OS users will be able to view PDFs.
    Note that courtesy dictates that you do everything you can to make the PDF as small as possible for email delivery.

  • Multiple Language Capability and Page Alignment

    Hi,
    I have an app with two languages. I need to know how to switch between the two languages (change the primary language). Also how to change the page alignment based on the selected language (RTL-LTR).
    Thanks

    Hi 930954,
    You can set where from primary language will be derived by setting globalization parameter "Application Language Derived From" and for example use FSP_LANGUGAGE_PREFERENCE application item.
    RTL-LTR can be set with CSS properties, that can be rendered in some conditional region on page 0 which condition refers to FSP_LANGUGAGE_PREFERENCE app. item.
    Br,
    Marko Goricki
    http://apexbyg.blogspot.com/

  • Mail and Multiple User Accounts and Email Accounts

    Hi there I want to be able to have two seperate pop email accounts, one for each of the two user accounts on my Mac mini but what is actually happening is that the primary mail account opens up within both user accounts and if you email the secondary account it arrives at the inbox for the primary one. The two pop accounts have the same ISP (NTL) and incoming mail server but different user names. I'd be very grateful for any suggested solutions!
    Thanks
    Mac Mini   Mac OS X (10.3.9)  

    When you check Mail preferences and select accounts, you should show only one account for each user. If two accounts show for both, the upper account is considered the primary, but all mail from all listed accounts will be available.
    If you show two accounts, delete the account not belonging to the logged in person.

  • Mail app displays No Subject, No Sender and No content in All Inboxes

    On my iPad 2 in the mail app, when looking at mail in All Inboxes my iCloud emails display with No Sender, No Subject, and No Content. If I tap on it there is "nothing to display". If I go to the iCloud inbox everything displays fine. I have multiple inboxes which include an exchange, gmail and xfinity accounts. The emails from these accounts all display fine in the All Inbox view. The Exchange is my primary work account and the iCloud is my primary home accoun tso viewing both is convenient.
    So far I have tried powering the iPad off and on. Shut the iCloud mail off and back on. Neither has worked. All messages display fine on my iPhone.
    Any suggestions?
    Thanks...Lenny

    Quit the mail app completely and restart the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Or ....
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Multiple Language..More information

    One of our team members tested that if he had oracle applications on 10g (UTF8) he was able to enter data in a DFF in a differnt language while logging into the US instance with no language patches on it. The scenario was repeated by another member who connected to the US applications instance and was able to save and re-query japanese characters.
    Our requirement is just to have 2-3 fields to be in different language that too in couple of forms. Is it still recommended to install the language patches or continue doing the same as tested above. Not sure how reporting and interfaces will work with it.
    Any pointers will be appreciated.
    Thanks
    Himanshu

    Ouch!!! I will definitely say that I am sorry for the sweeping generallization of my comment ...
    For anyone who has taken offence to my posting that the US of A is a "mono-culture" - I am SINCERELY sorry.
    Just for your reference, I studied and worked in the US (NJ specifically) for almost 9 years. I agree that there are many cultures and ethnicity that are scattered (& concentrated) around the country.
    My gripe is as follows - not just for Apple, but for all software manufacturers throughout the world. Consideration from the onset for multiple language (display and input) is very important.
    The main reason I started using the iPod is that it is multi-lingual ready. I was an ardent supporter of the Creative Jukebox (being a Singaporean company) but was quickly put off by its inability to read Unicode.
    Similarly - I switched from WinAmp to iTunes was for the sole reason that iTunes did not need a separate plug-in to recognize Korean, Chinese (Simplified & Traditional), Japanese, French .... languages.
    The other side of it is that many "standards" are biased towards using the English language as a standard of communicating and documenting. This is due to the natural realization that it is a very common language (but incidentally not the most spoken, written &etc).
    But I digress - as you stated - this is neither a political nor a cultural forum. The wonderful thing about the Mac is that it transcends these boundaries. I am a Switcher - having used and am still using Windows. But the issue is why would Apple have been such a hit with the Japanese since its inception while the others have taken the path of mass appeal.
    So now I stand down from my soap box.
    Again - for those who have taken offence to my statement - my apologies!

  • Modify SAP Email notification subject and content

    Hi,
    As of now we are receiving notification emails with standard subject whenever we are receiving workflow items in SAP .
    I want to customize the subject and content of the notification...
    Eg;
    One of our team receiving email notifications for all workflow items [for Idoc Status errors] .. now i want to change the subject and content for this team alone . ..
    Suppose if the orders got failed , workflow will assign to EDI team .. they will receive email for this ..
    Now i need to change the email subject / append the idoc status in the subject ...
    Please help me

    Hi, how did you solve the problem? I have probably the same problem and I am new in this. After payment clarification process in FS-CD the email is automatically generated and send to user. But I do not know where can I change the body of the email. If it is Customizing, or change in some program or User exit or FM?
    thank you for any help..
    Michal

  • [Forum FAQ] How do I send multiple rows returned by Execute SQL Task as Email content in SQL Server Integration Services?

    Question:
    There is a scenario that users want to send multiple rows returned by Execute SQL Task as Email content to send to someone. With Execute SQL Task, the Full result set is used when the query returns multiple rows, it must map to a variable of the Object data
    type, then the return result is a rowset object, so we cannot directly send the result variable as Email content. Is there a way that we can extract the table row values that are stored in the Object variable as Email content to send to someone?
    Answer:
    To achieve this requirement, we can use a Foreach Loop container to extract the table row values that are stored in the Object variable into package variables, then use a Script Task to write the data stored in packages variables to a variable, and then set
    the variable as MessageSource in the Send Mail Task. 
    Add four variables in the package as below:
    Double-click the Execute SQL Task to open the Execute SQL Task Editor, then change the ResultSet property to “Full result set”. Assuming that the SQL Statement like below:
    SELECT   Category, CntRecords
    FROM         [table_name]
    In the Result Set pane, add a result like below (please note that we must use 0 as the result set name when the result set type is Full result set):
    Drag a Foreach Loop Container connects to the Execute SQL Task. 
    Double-click the Foreach Loop Container to open the Foreach Loop Editor, in the Collection tab, change the Enumerator to Foreach ADO Enumerator, then select User:result as ADO object source variable.
    Click the Variable Mappings pane, add two Variables as below:
    Drag a Script Task within the Foreach Loop Container.
    The C# code that can be used only in SSIS 2008 and above in Script Task as below:
    public void Main()
       // TODO: Add your code here
                Variables varCollection = null;
                string message = string.Empty;
                Dts.VariableDispenser.LockForWrite("User::Message");
                Dts.VariableDispenser.LockForWrite("User::Category");
                Dts.VariableDispenser.LockForWrite("User::CntRecords");     
                Dts.VariableDispenser.GetVariables(ref varCollection);
                //Format the query result with tab delimiters
                message = string.Format("{0}\t{1}\n",
                                            varCollection["User::Category"].Value,
                                            varCollection["User::CntRecords"].Value
               varCollection["User::Message"].Value = varCollection["User::Message"].Value + message;   
               Dts.TaskResult = (int)ScriptResults.Success;
    The VB code that can be used only in SSIS 2005 and above in Script Task as below, please note that in SSIS 2005, we should
    change PrecompileScriptIntoBinaryCode property to False and Run64BitRuntime property to False
    Public Sub Main()
            ' Add your code here
            Dim varCollection As Variables = Nothing
            Dim message As String = String.Empty
            Dts.VariableDispenser.LockForWrite("User::Message")
            Dts.VariableDispenser.LockForWrite("User::Category")
            Dts.VariableDispenser.LockForWrite("User::CntRecords")
            Dts.VariableDispenser.GetVariables(varCollection)
            'Format the query result with tab delimiters
            message = String.Format("{0}" & vbTab & "{1}" & vbLf, varCollection("User::Category").Value, varCollection("User::CntRecords").Value)
            varCollection("User::Message").Value = DirectCast(varCollection("User::Message").Value,String) + message
            Dts.TaskResult = ScriptResults.Success
    End Sub
    Drag Send Mail Task to Control Flow pane and connect it to Foreach Loop Container.
    Double-click the Send Mail Task to specify the appropriate settings, then in the Expressions tab, use the Message variable as the MessageSource Property as below:
    The final design surface like below:
    References:
    Result Sets in the Execute SQL Task
    Applies to:
    Integration Services 2005
    Integration Services 2008
    Integration Services 2008 R2
    Integration Services 2012
    Integration Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • Why are emails downloaded with the subject and from address different from what is actually in the email?

    The subject and from address listed in the message pane are totally different from what is in the actual email, viewed either in the preview pane or when the email is opened. The emails are correct when viewed online. For example:
    Email subject A from Sender A - email A
    Email subject B from Sender B - email B
    Email subject C from Sender C - email C
    After downloading to Thunderbird:
    Email subject A from Sender A - email A
    Email subject B from Sender B - email B
    Email subject C from Sender C - email A *** Subject and Sender for C but is actually email A
    This started happening within the past month and appears to be random. Sometimes everything is correct. But more often there are a few that exhibit the above behavior. I have multiple email address downloading from the same domain but this problem seems to occur ostly with my main email account.

    Try to rebuild the index file of the troubled folder.
    Right-click the folder - Properties - Repair Folder

Maybe you are looking for

  • Navigate to Transactional iVIEW by passing parameters & UWL

    Hi Experts, I have 2 queries here, 1>> I understand  that to navigate to a transaction from webdynpro a transactional iview has to be used. In my case i have to navigate to ME51 from the component and display the transaction with the details of a pat

  • Java Registry Sweeper?

    Hello, we had a problem with one of the MSI packages for Java that we pushed out to all out computers the other day. Is there any kind of official or recommended tool that will fully clear out all aspects of a java install from the registry/computer?

  • NOT red eye but BLUE eyes

    Several pix of my dogs have their eyes blue just like red eyes can be. Is there some easy fix within iPhoto (v6.0.4) I'm missing? Or do I have to go out to something like GraphicConverter?

  • My ipod marks an error -50 how can i fix this is an emergency!

    Hi, mac i need to know please how to fix this error my itunes puts em an error -50 what is that? how can i fix it? because i cant sync or restore the ipod because of this error and i want to sync and use my ipod! os please reply me soon! Message was

  • Question about change in Windows File Explorer in 8.1

    Windows File Explorer in Windows 8 (and previous releases) would display an icon if the file had the offline attribute set.  Windows 8.1 File Explorer does not show an "offline" icon if the file's offline attribute is set.  Is there a way to set at o