MaRiOsGR Posted June 16, 2009 Share Posted June 16, 2009 Hello people, I have the following problem, when I make an order with the client details in Greek characters , and then try to create the package in Plesk I always get the error: Module Command Error 1014 - Parser error: Cannot parse the XML from the source specified I've tried that with 3 different clients and they all get the same error. I did test it with latin characters and its working fine, so I guess the problem is the greek characters. Plesk commands and plesk work file with greek characters (for example [root@zeus marav]# /usr/local/psa/bin/client --create testuser123 -name "τεστ τεστερ" -passwd sample -country GR -notify false SUCCESS: Creation of client 'testuser123' complete.) whmcs support staff say they do not have any solution at the current time. is there any one that has done something like this? or any developer who can fix this problem ? 0 Quote Link to comment Share on other sites More sharing options...
bubbasheeko Posted June 18, 2009 Share Posted June 18, 2009 Hmmm, maybe the charset in the template you are using? I know it has it's own variable {$charset} <meta http-equiv="content-type" content="text/html; charset={$charset}" /> Maybe try setting it manually to a character set that supports greek? I believe charset=iso-8859-7 is for the greek alphabet. Try setting that manually, although I am unsure if that will affect anything else. I am suggesting this because you stated that Plesk was accepting it, so it must be a problem with it coming in from WHMCS, hence the charset could be a possibility. Hope it helps! 0 Quote Link to comment Share on other sites More sharing options...
MaRiOsGR Posted June 18, 2009 Author Share Posted June 18, 2009 the support said that it accepts utf-8 in the xml parser, and the charset of the page is charset=utf-8 (if i do an "view source"). they also gave me this: This is what the plesk module from WHMCS sends. As you can see encoding is specified as UTF-8 and the data passed into it is exactly what the customer enters: <?xml version="1.0" encoding="UTF-8"?> <packet version="1.6.0.0"> <client> <add> <gen_info> <pname>xxxxxxxxxxxxx</pname> <login>xxxxxxxx</login> <passwd>xxxxxx</passwd> <status>0</status> <phone>xxxxxxxx</phone> <fax/> <email>xxxx@xxx.xx</email> <address>xxxxx</address> <city>xxxxxx</city> <state>xxxxx</state> <pcode>xxxx</pcode> <country>xx</country>' </gen_info> <template-name>xxxxxx</template-name> </add> </client> </packet> Regards, Matt but I dont know what would that help. Is I have noticed they use regular expressions for the parser, and it only accepts A-Z and 0-9 ... 0 Quote Link to comment Share on other sites More sharing options...
bubbasheeko Posted June 18, 2009 Share Posted June 18, 2009 I wasn't even thinking about the XML!! UTF-8 would support the greek alphabet only it showed up in the xml as 945; or α (lower case Alpha, without the space between # and 9). I am wondering if this is causing some problems with the validity of the XML file. Can you take the provided XML example and fill in test information using Greek and attach it here. I will check it over to make sure it comes out valid. I am almost certain that this is the problem. I still think that iso-8859-1 needs to be used in this case for the xml because it is more specific towards the Greek alphabet, where utf-8 is more universal. 0 Quote Link to comment Share on other sites More sharing options...
MaRiOsGR Posted June 19, 2009 Author Share Posted June 19, 2009 Kevin thank you for your interest. here is an example with greek characters <?xml version="1.0" encoding="UTF-8"?> <packet version="1.6.0.0"> <client> <add> <gen_info> <pname>Τεστάκης Τεστόπουλος</pname> <login>user123</login> <passwd>test123</passwd> <status>0</status> <phone>00302810325001</phone> <fax/> <email>mytest@myemail.gr</email> <address>Δράμας 18</address> <city>Ηράκλειο</city> <state>Κρήτης</state> <pcode>71307</pcode> <country>GR</country>' </gen_info> <template-name>xxxxxx</template-name> </add> </client> </packet> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.