Hiya,
I have been trying to send user email with chinese characters in message, but soon I encounter the problem which is those characters won't display correctly.
I found this thread had talking about this problem, and I try load message via external UTF-8 txt file as suggest but still no luck ( same result as typing message directly in script, it shows '????????' on sent mail )
Has anyone encounter this problem as well and is there solution to solve it ? thanks for any tips.
sendMail with chinese characters
It may be related to JVM. See http://www.smartfoxserver.com/forums/viewtopic.php?p=2456#2456
Smartfox's forum is my daily newspaper.
@BigFish
Thank you for response, after read the thread I think my problem may be different to that one.
The messages sent to client and admin tool is ok (will show characters correctly), the problem is when using _server.sendMail for sending email to user, the mail content (message) won't display Chinese characters ( however the subject field will display correctly ).
My environment is
win xp appserv 2.5.10
java 1.6.0_13
sfs 1.6.9
Thank you for response, after read the thread I think my problem may be different to that one.
The messages sent to client and admin tool is ok (will show characters correctly), the problem is when using _server.sendMail for sending email to user, the mail content (message) won't display Chinese characters ( however the subject field will display correctly ).
My environment is
win xp appserv 2.5.10
java 1.6.0_13
sfs 1.6.9
yes I has read that post and try what lapo said ( save mail content as .txt file, use _server.readFile load it, and use it on mail message field), but, still same result, only see ?????? on received mail content.
these is my script :
any help is appreciated !
these is my script :
Code: Select all
var from = "service@moou.com.tw";
var to = "savorksp@hotmail.com";
var subject = "ä¸æ–‡å—(Chinese characters)"; // these will display correctly in received mail
var message = _server.readFile("sfsExtensions/data/test.txt");// these won't show Chinese characters in received mail
_server.sendMail(from, to, subject, message);
any help is appreciated !
This may not be a SmartFoxServer issue. See this posting: http://drupal.org/node/78876
Smartfox's forum is my daily newspaper.
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 70 guests