![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||||
| |||||
|
|
Since you did not show us exact query you send to PostgreSQL |
|
I assume the query passed to PostgreSQL is: select id from products where name like 'string'; |
|
where string is "0x8fac90ec96be93fa8d81". |
|
If the string is supposed to be an EUC_JP, it would be parsed as follows: 8f: single shift 3 (indicates that following 2 bytes are a JIS 0212 character |
|
PS I have also had the error pop up with this string: search_words=%B7%F6%BA%7E select id from products where name like '??~' Query failed: ERROR: Invalid EUC_JP character sequence found (0xba7e) This is definitly a bad EUC_JP. |



#2
| |||
| |||
|
|
search_words=%B7%F6%BA%7E select id from products where name like '??~' Query failed: ERROR: Invalid EUC_JP character sequence found (0xba7e) This is definitly a bad EUC_JP. According to a PHP developer in my bug report (http://bugs.php.net/bug.php?id=24309&edit=2): "URL decoded byte sequance of 'search_words=%B7%F6%BA%7E' is B7E6+BA7E, which is correct EUC-JP character sequence. [snip] But, I believe encoding detection of mbstring works fine in this case. B7E6+BA7E is not correct byte sequence of SJIS, UTF-8, ISO2022-JP. It is correct EUC-JP byte sequence." I see that he wrote B7E6 instead of the correct B7F6. I resubmitted my bug report to PHP and pointed this out. Hopefully the developer will see that this sequence is incorrect EUC-JP and that PHP failed to detect this ![]() |
|
Thanks! Jean-Christian Imbeault PS I posted to HACKERS a few weeks ago about another bug (a real one ![]() in the EUC-JP translation having to do with the WAVE DASH. I'll repost here on the BUGS list, could you let me know the status of that BUG? Thanks! |
![]() |
| Thread Tools | |
| Display Modes | |
| |