RE: charset problem
No, the wml pages have an xml declaration tag but it only includes version info. Regards, ilker --- Oded Arbel [EMAIL PROTECTED] wrote: I though your original problem was that you did not have an XML encoding decleration. -- Oded Arbel m-Wise mobile solutions [EMAIL PROTECTED] +972-9-9581711 (116) +972-67-340014 ::.. Marriage is the most expensive way I know of for each partner to discover all of the other's faults. -Original Message- From: ilker Aktuna [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 7:30 AM To: [EMAIL PROTECTED] Subject: RE: charset problem Hi, If I am successful to add that line to the wml source, how shall I remove the original xml declaration tag ? I should remove it, I think... Regards, ilker --- Oded Arbel [EMAIL PROTECTED] wrote: -Original Message- From: ilker Aktuna [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 12:23 PM To: [EMAIL PROTECTED] Subject: RE: charset problem Thanks. With this information, I hope I can write a new gateway software :))) Just for adding a line of text ? I hope you are joking. To do it externally is not terribly complicated - write a web script (for example) that will accept the HTTP calls from Kannel, get the appropriate url from the content provider, and add a line at the top of the content '?xml encoding=iso-8859-9?' before sending the content back to Kannel. inside Kannel, you can do the same by finding where the call ot the XML parser and doing an octstr_insert with the same line on the data. -- Oded Arbel m-Wise mobile solutions [EMAIL PROTECTED] +972-9-9581711 (116) +972-67-340014 ::.. All you need to make a movie is a girl and a gun -- Jean Luc Godar __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com
RE: charset problem
Then you need not remove the current deceleration, just insert a characterset into it. -- Oded Arbel m-Wise mobile solutions [EMAIL PROTECTED] +972-9-9581711 (116) +972-67-340014 ::.. Don't relax! It's only your tension that's holding you together. -Original Message- From: ilker Aktuna [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 11:34 AM To: Oded Arbel; [EMAIL PROTECTED] Subject: RE: charset problem No, the wml pages have an xml declaration tag but it only includes version info. Regards, ilker --- Oded Arbel [EMAIL PROTECTED] wrote: I though your original problem was that you did not have an XML encoding decleration. -- Oded Arbel m-Wise mobile solutions [EMAIL PROTECTED] +972-9-9581711 (116) +972-67-340014 ::.. Marriage is the most expensive way I know of for each partner to discover all of the other's faults. -Original Message- From: ilker Aktuna [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 7:30 AM To: [EMAIL PROTECTED] Subject: RE: charset problem Hi, If I am successful to add that line to the wml source, how shall I remove the original xml declaration tag ? I should remove it, I think... Regards, ilker --- Oded Arbel [EMAIL PROTECTED] wrote: -Original Message- From: ilker Aktuna [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 12:23 PM To: [EMAIL PROTECTED] Subject: RE: charset problem Thanks. With this information, I hope I can write a new gateway software :))) Just for adding a line of text ? I hope you are joking. To do it externally is not terribly complicated - write a web script (for example) that will accept the HTTP calls from Kannel, get the appropriate url from the content provider, and add a line at the top of the content '?xml encoding=iso-8859-9?' before sending the content back to Kannel. inside Kannel, you can do the same by finding where the call ot the XML parser and doing an octstr_insert with the same line on the data. -- Oded Arbel m-Wise mobile solutions [EMAIL PROTECTED] +972-9-9581711 (116) +972-67-340014 ::.. All you need to make a movie is a girl and a gun -- Jean Luc Godar __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com
RE: charset problem
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of ilker Aktuna Sent: Wednesday, 21 August 2002 3:30 PM To: [EMAIL PROTECTED] Subject: RE: charset problem Hi, If I am successful to add that line to the wml source, how shall I remove the original xml declaration tag ? if you're following Oded's idea of running a kind of web proxy which does it for you then it would be really simple to remove the first line using the string manipulation functions of php or perl. if you're a complete newbie to web scripting then php is really easy IMHO. I should remove it, I think... yup. wilf
RE: charset problem
Hi, If I am successful to add that line to the wml source, how shall I remove the original xml declaration tag ? I should remove it, I think... Regards, ilker --- Oded Arbel [EMAIL PROTECTED] wrote: -Original Message- From: ilker Aktuna [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 12:23 PM To: [EMAIL PROTECTED] Subject: RE: charset problem Thanks. With this information, I hope I can write a new gateway software :))) Just for adding a line of text ? I hope you are joking. To do it externally is not terribly complicated - write a web script (for example) that will accept the HTTP calls from Kannel, get the appropriate url from the content provider, and add a line at the top of the content '?xml encoding=iso-8859-9?' before sending the content back to Kannel. inside Kannel, you can do the same by finding where the call ot the XML parser and doing an octstr_insert with the same line on the data. -- Oded Arbel m-Wise mobile solutions [EMAIL PROTECTED] +972-9-9581711 (116) +972-67-340014 ::.. All you need to make a movie is a girl and a gun -- Jean Luc Godar __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com
RE: charset problem
-Original Message- From: ilker Aktuna [mailto:[EMAIL PROTECTED]] --- Oded Arbel [EMAIL PROTECTED] wrote: From what I'm reading there : snip If there is no encoding declaration, then the input has to be in either UTF-8 or UTF-16, /snip Then there is no way to support your content w/o seriously patching libxml2. not withstanding, of course, the fact that libxml2 does not internally support ISO-8859-9 - that problem is easy to solve by compiling libxml2 with iconv (which may already be so on your system). There should be a patch for this. Am I the only one who needs this ? You may not be the only one who needs this functionality, but libxml2 will never (or rather - I think it should never) include the option of supporting non-stanard input, as it breaks implementation in other areas. You need to realize that what is broken and need fixing is the content which should support a certain standard in order to work (in this case WML which is based on XML IIRC), and since the content is not formatted correctly, it is not going to be accepted as valid input. What you could do, maybe, is detect the encoding from the HTTP response and then insert an appropriate XML encoding tag into the content before sending it to libxml. -- Oded Arbel m-Wise mobile solutions [EMAIL PROTECTED] +972-9-9581711 (116) +972-67-340014 ::.. University, n.: Like a software house, except the software's free, and it's usable, and it works, and if it breaks they'll quickly tell you how to fix it, and ...
RE: charset problem
-Original Message- From: Paul Keogh [mailto:[EMAIL PROTECTED]] This is a libxml error; From the libxml src; /* * If we detect an UTF8 error that probably mean that the * input encoding didn't get properly advertized in the * declaration header. Report the error and switch the encoding * to ISO-Latin-1 (if you don't like this policy, just declare the * encoding !) */ Without trawling the src further, seems like the gateway only accepts UTF-8 encoding. Or - declare the character set in the XML as per the syntax. -- Oded Arbel m-Wise mobile solutions [EMAIL PROTECTED] +972-9-9581711 (116) +972-67-340014 ::.. Did you ever wonder if the person in the puddle is real, and you're just a reflection of HIM? -- Calvin and Hobbes
RE: charset problem
Hi, Thanks for your reply. I can not declare the encoding in the XML because I am not the owner of these wap sites. Is there another way to remove this check from the gateway ? Kind Regards, ilker --- Oded Arbel [EMAIL PROTECTED] wrote: -Original Message- From: Paul Keogh [mailto:[EMAIL PROTECTED]] This is a libxml error; From the libxml src; /* * If we detect an UTF8 error that probably mean that the * input encoding didn't get properly advertized in the * declaration header. Report the error and switch the encoding * to ISO-Latin-1 (if you don't like this policy, just declare the * encoding !) */ Without trawling the src further, seems like the gateway only accepts UTF-8 encoding. Or - declare the character set in the XML as per the syntax. -- Oded Arbel m-Wise mobile solutions [EMAIL PROTECTED] +972-9-9581711 (116) +972-67-340014 ::.. Did you ever wonder if the person in the puddle is real, and you're just a reflection of HIM? -- Calvin and Hobbes = ilker Aktuna Network Expert CCNP, CCDA __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com
RE: charset problem
2002-08-16 14:53:50 [10] DEBUG: Octet string dump ends. 2002-08-16 14:53:50 [9] DEBUG: HTTP: Status line: HTTP/1.1 200 OK 2002-08-16 14:53:50 [7] INFO: WSP: Fetched http://212.65.136.236/TWPortal/default.asp (text/vnd.wap.wml, charset='iso-8859-9') Entity: line 6: error: Input is not proper UTF-8, indicate encoding ! card id=RedirectCard title=Ho~geldiniz ontimer=http://212.65.136.236/TWP ^ Entity: line 6: error: Bytes: 0xFE 0x67 0x65 0x6C card id=RedirectCard title=Ho~geldiniz ontimer=http://212.65.136.236/TWP This is a libxml error; From the libxml src; /* * If we detect an UTF8 error that probably mean that the * input encoding didn't get properly advertized in the * declaration header. Report the error and switch the encoding * to ISO-Latin-1 (if you don't like this policy, just declare the * encoding !) */ Without trawling the src further, seems like the gateway only accepts UTF-8 encoding.