<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[xajax Forums - no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
	<link rel="self" href="http://community.xajaxproject.org/feed/atom/topic/8322/"/>
	<updated>2010-05-28T15:03:37Z</updated>
	<generator>PunBB</generator>
	<id>http://community.xajaxproject.org/topic/8322/no-utf8-charset-php-5213-breaks-xajaxresponse/</id>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29527/#p29527"/>
			<content type="html"><![CDATA[I've seen some similar encoding this week at work, they were cause by json_encode() and UTF8-strings. Perhaps it help to track down the source of the malformed strings..]]></content>
			<author>
				<name><![CDATA[q_no]]></name>
				<uri>http://community.xajaxproject.org/user/569/</uri>
			</author>
			<updated>2010-05-28T15:03:37Z</updated>
			<id>http://community.xajaxproject.org/post/29527/#p29527</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29526/#p29526"/>
			<content type="html"><![CDATA[Our developer has no clue. I don´t know if this will/can be investigated further... =(]]></content>
			<author>
				<name><![CDATA[larsen]]></name>
				<uri>http://community.xajaxproject.org/user/4441/</uri>
			</author>
			<updated>2010-05-28T07:34:13Z</updated>
			<id>http://community.xajaxproject.org/post/29526/#p29526</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29502/#p29502"/>
			<content type="html"><![CDATA[No idea, perhaps from OsCommerce somewhere. I am going to discuss this with our developer next week.

Have a sunny weekend =)]]></content>
			<author>
				<name><![CDATA[larsen]]></name>
				<uri>http://community.xajaxproject.org/user/4441/</uri>
			</author>
			<updated>2010-05-21T13:32:32Z</updated>
			<id>http://community.xajaxproject.org/post/29502/#p29502</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29498/#p29498"/>
			<content type="html"><![CDATA[I'm a bit confused, where does the conversion of the letter ä happen? that's not a proper encoding ;)]]></content>
			<author>
				<name><![CDATA[q_no]]></name>
				<uri>http://community.xajaxproject.org/user/569/</uri>
			</author>
			<updated>2010-05-21T12:30:21Z</updated>
			<id>http://community.xajaxproject.org/post/29498/#p29498</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29496/#p29496"/>
			<content type="html"><![CDATA[Here it is (part of it):
<a href="javascript:void(0)" onClick="xajax_sh
owArticles(52,'Gespr<E4>che',1,'2')"><div class="weinberater_right_item_text">Gespr<E4>che</div></a>

"Gespr<E4>che" should be "Gespräche".
All MySQL tables are set to UTF-8 collation.]]></content>
			<author>
				<name><![CDATA[larsen]]></name>
				<uri>http://community.xajaxproject.org/user/4441/</uri>
			</author>
			<updated>2010-05-20T15:26:40Z</updated>
			<id>http://community.xajaxproject.org/post/29496/#p29496</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29492/#p29492"/>
			<content type="html"><![CDATA[A daring thesis ;-)

I´ve added debugging output to the file in question and now am waiting for some website user to stumble over the part that calls that function. Our developer testet some stuff in OsCommerce, but didn´t cause the error.]]></content>
			<author>
				<name><![CDATA[larsen]]></name>
				<uri>http://community.xajaxproject.org/user/4441/</uri>
			</author>
			<updated>2010-05-20T12:24:22Z</updated>
			<id>http://community.xajaxproject.org/post/29492/#p29492</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29476/#p29476"/>
			<content type="html"><![CDATA[hm... so far I cannot see anything suspicious, but could you please paste the string causing the error? Guess the answer lies somewhere in the input of the function ;)]]></content>
			<author>
				<name><![CDATA[q_no]]></name>
				<uri>http://community.xajaxproject.org/user/569/</uri>
			</author>
			<updated>2010-05-18T17:01:17Z</updated>
			<id>http://community.xajaxproject.org/post/29476/#p29476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29473/#p29473"/>
			<content type="html"><![CDATA[I think perhaps the whole file...]]></content>
			<author>
				<name><![CDATA[edrobinson]]></name>
				<uri>http://community.xajaxproject.org/user/693/</uri>
			</author>
			<updated>2010-05-17T18:00:40Z</updated>
			<id>http://community.xajaxproject.org/post/29473/#p29473</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29472/#p29472"/>
			<content type="html"><![CDATA[Hi Ed,

how much code do you want? =)
Only the offending function or the whole file?

Lars]]></content>
			<author>
				<name><![CDATA[larsen]]></name>
				<uri>http://community.xajaxproject.org/user/4441/</uri>
			</author>
			<updated>2010-05-17T15:40:04Z</updated>
			<id>http://community.xajaxproject.org/post/29472/#p29472</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29471/#p29471"/>
			<content type="html"><![CDATA[Hi Lars,

Boy did I ever drop the ball on this one! I believe eliotik sent me an email containing code back in March and it got lost in the works. My apologies. 

I dug around and found the code and have been looking at it but haven't found anything obvious.

Lars, could you post the offending code?

Ed]]></content>
			<author>
				<name><![CDATA[edrobinson]]></name>
				<uri>http://community.xajaxproject.org/user/693/</uri>
			</author>
			<updated>2010-05-17T13:53:12Z</updated>
			<id>http://community.xajaxproject.org/post/29471/#p29471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29470/#p29470"/>
			<content type="html"><![CDATA[Hi,

I have a similar error message:
PHP Warning:  htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /var/www/vhosts/xxxxx/httpdocs/fileadmin/oscommerce/catalog/xajax_core/xajaxResponse.inc.php on line 1575

That line used to read:
$bSpecialChars = (htmlspecialchars($sData, ENT_COMPAT, UTF-8) != $sData);

Following another topic ([url]http://dev.xajaxproject.org/community//viewtopic.php?id=7136[/url]) I found I changed it to the following but that didn´t help:
$bSpecialChars = (htmlspecialchars($sData, ENT_COMPAT, XAJAX_DEFAULT_CHAR_ENCODING) != $sData);

PHP is 5.2.0 on Debian Etch


Lars]]></content>
			<author>
				<name><![CDATA[larsen]]></name>
				<uri>http://community.xajaxproject.org/user/4441/</uri>
			</author>
			<updated>2010-05-17T09:31:12Z</updated>
			<id>http://community.xajaxproject.org/post/29470/#p29470</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29221/#p29221"/>
			<content type="html"><![CDATA[An email would be fine. 

Ed]]></content>
			<author>
				<name><![CDATA[edrobinson]]></name>
				<uri>http://community.xajaxproject.org/user/693/</uri>
			</author>
			<updated>2010-03-08T17:23:26Z</updated>
			<id>http://community.xajaxproject.org/post/29221/#p29221</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29217/#p29217"/>
			<content type="html"><![CDATA[Hi, not today, at home, will post tomorrow,
code do next:
take some data from oracle base and put it to dbase tables. Data is in cyrilic(win-1251)
and i even dont know wich code to post cause code where this error pop is very big, if u want i can send u to email this function?]]></content>
			<author>
				<name><![CDATA[eliotik]]></name>
				<uri>http://community.xajaxproject.org/user/4348/</uri>
			</author>
			<updated>2010-03-08T16:35:13Z</updated>
			<id>http://community.xajaxproject.org/post/29217/#p29217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29216/#p29216"/>
			<content type="html"><![CDATA[Can you post some code?

Ed]]></content>
			<author>
				<name><![CDATA[edrobinson]]></name>
				<uri>http://community.xajaxproject.org/user/693/</uri>
			</author>
			<updated>2010-03-08T15:50:52Z</updated>
			<id>http://community.xajaxproject.org/post/29216/#p29216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[no utf8 charset, php 5.2.13 breaks xajaxResponse]]></title>
			<link rel="alternate" href="http://community.xajaxproject.org/post/29215/#p29215"/>
			<content type="html"><![CDATA[Hi all,
updated today php to version 5.2.13, 
xajax 0.5 final
and now i have error
[Fri Mar 05 16:28:32 2010] [error] [client 127.0.0.1] PHP Warning:  htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in xajax\\xajax_core\\xajaxResponse.inc.php on line 1709

in that line i have
  $bSpecialChars = (htmlspecialchars($sData, ENT_COMPAT, 'UTF-8') != $sData);

and in debug log it show

Fri Mar 05 2010 16:50:20 GMT+0200

ERROR: No response processor is available to process the response from the server.
Content-Type: text/html.
Check for error messages from the server.

Fri Mar 05 2010 16:50:20 GMT+0200

ERROR: The server returned the following HTTP status: 500
RECEIVED:

and now site wich used xajax not working, anyone can help me with this problem?
Thak you


P.S. and sorry for repost, cause first time im posted in thread with the same problem but in v.0.2 of xajax, and didnot saw this.]]></content>
			<author>
				<name><![CDATA[eliotik]]></name>
				<uri>http://community.xajaxproject.org/user/4348/</uri>
			</author>
			<updated>2010-03-08T14:38:26Z</updated>
			<id>http://community.xajaxproject.org/post/29215/#p29215</id>
		</entry>
</feed>
