dcsimg
send mail internationalized base
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   maneesh_sata
Posted On:   Tuesday, November 26, 2002 04:45 PM

hi all! (first i m using jbuilder6 and want to print on console) i want to just send a mail but now in hindi/arabic.Though i m setting the charset utf8 but i still hv encoding Cp1252.i m sending by using "message.setContent(body,ContentType)".but no response at all. i know the string i m recieving in servlet by request.getParamete is quite right bcz i m using getbyte in string and i hv also printed this string by using out.println just for confirmation.It mean string for body text is quite ok but i think encoding is problem.I hv tried alot to set encoding by using System.setProperty("file.encoding",utf-8); (i hv use here even cp918,cp828 u   More>>

hi all!

(first i m using jbuilder6 and want to print on console)
i want to just send a mail but now in hindi/arabic.Though i m setting the charset utf8 but i still hv encoding Cp1252.i m sending


by using "message.setContent(body,ContentType)".but no response at all.



i know the string i m recieving in servlet by request.getParamete is quite right bcz i m using getbyte in string and i hv also printed this string by using out.println just for confirmation.It mean string for body text is quite ok but i think encoding is problem.I hv tried alot to set encoding by using



System.setProperty("file.encoding",utf-8);



(i hv use here even cp918,cp828 utf-16 but no response)



but no solution at all.Moreover System.out.println(xx) is giving me question mark for that string which is correctly printed by using out.println.



i think i hv quite clearly mention my problem plz now help me


thanx.

   <<Less

Re: send mail internationalized base

Posted By:   John_Zukowski  
Posted On:   Wednesday, November 27, 2002 04:04 PM

System.out.println strips off the high 8 bits of output.
About | Sitemap | Contact