Hello all!
Anyone know how to define character set coding when sending XML out of flash (MX 2004 pro)?
I live in SLOVENIA and here we have some special characters (ŠÈŽ šèž)! Any idea? I try few things! Here is my code:
stop();
function submit() {
var myXMLStr;
var xmlMailinglist;
var myURL;
myXMLStr = "<?xml version=\"1.0\" encoding="ISO-8859-1" ?>\r";
myXMLStr = myXMLStr+"<mailing_list db='MYSQL1'>\r";
myXMLStr = myXMLStr+" <entry mail='"+inptMail+"' name='"+inptName+"' address='"+inptAddress+"' zip='"+inptZip+"' post='"+inptPost+"'/>\r";
myXMLStr = myXMLStr+" <mail_group name='news' value='"+cbNews.selected+"'/>\r";
myXMLStr = myXMLStr+" <mail_group name='reviews' value='"+cbReviews.selected+"'/>\r";
myXMLStr = myXMLStr+" <mail_group name='interviews' value='"+cbInterviews.selected+"'/>\r";
myXMLStr = myXMLStr+" <mail_group name='events' value='"+cbEvents.selected+"'/>\r";
myXMLStr = myXMLStr+"</mailing_list>\r";
xmlMailinglist = new XML(myXMLStr);
xmlMailinglist.contentType = "text/xml;charset=iso-8859-1";
txtXML = xmlMailinglist.toString();
myXMLStr.parseString(
loginReplyXML = new XML();
loginReplyXML.onLoad = loginResponse;
xmlMailinglist.sendAndLoad("http://127.0.0.1:8080/lipag/requesttestservlet", loginReplyXML);
I try UTF-8, windows-1250 and it didnt work!
Any idea? Thanks!