Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Special Characters displayed as '?'  RSS feed

 
Nagarajan Krishnamurthy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am trying to parse a xml[from a servlet] and based on the input i get from the xml i need to send a mail(using java mail) to all recipients in the xml .

While parsing the xml i get '�'[Registered sybmol] symbol in one of the nodes within CDATA secion ,that needs to be in the Subject of the mail.

The problem is as soon as i get the request when i print the xml in the console i see '?'[Question mark] instead of '�'[Registered sybmol] symbol.

Here are my environment Details:
OS : Solaris
Server :Weblogic Server 8.1 SP5
Parser : DOM

i did set my environment variable in Solaris as LANG=en_US.But this prints the '�'[Registered sybmol] symbol correctly on the console.But in the mail i get is still displayed as '?' [Question Mark]

NOTE:
1.When i tried printing the system property named 'file.encoding' it says iso8859_1

2.encoding for the xml is UTF-8


Anybody has any idea about this .PLEASE............ help me.....
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nagarajan:
But in the mail i get is still displayed as '?' [Question Mark]


What is the encoding used in the email client?
It must be an inappropriate encoding used by the email client rather than the data in the subject.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!