[pLog-svn] r5285 - in plog/branches/lifetype-1.2/class: data test/tests/data

Jon Daley plogworld at jon.limedaley.com
Sat Apr 7 16:47:57 EDT 2007


One interesting thing (at least to me since I don't know about all this 
encoding stuff) is that my brower is auto-detecting the runtests.php page 
as a UTF8 page, but if I force it to use ISO-8859-1, the output is a 
little different, and makes more sense to me.

Error htmlDecode()-ing string: áé expected áé, actual áé in 
/home/jamal/www/class/test/tests/data/textfilter_test.class.php:118

I think probably the problem is that if UTF8 is enabled the output is not 
just the two bytes, but is four bytes.  So, in order to have the test pass 
in all circumstances, we would have to have an if(db_character_set == 
utf8) in the test, right?


On Sat, 7 Apr 2007, Jon Daley wrote:

> 	The last two htmldecode tests are currently failing for me.  I have 
> my config db_character_set = 'utf8'.  If I change it to be 'utf7' ie. use the 
> other path through htmldecode, it works fine.
> 	Any ideas?  Does the textfilter test currently work for people who 
> have the setting set to utf8?
>
> Error htmlDecode()-ing string: áé expected .., actual áé in
>  /class/data/textfilter_test.class.php:90
>
> expected .., actual áé in
>  /class/test/tests/data/textfilter_test.class.php:92
>
> Error htmlDecode()-ing string: äÜ expected .., actual äÜ in
>  /class/test/tests/data/textfilter_test.class.php:90
>
> expected .., actual äÜ in
>  /class/test/tests/data/textfilter_test.class.php:92

-- 
Jon Daley
http://jon.limedaley.com/

The difference between genius and stupidity
is that genius has its limits.
-- Anonymous


More information about the pLog-svn mailing list