From:             stronk7 at moodle dot org
Operating system: Irrelevant
PHP version:      5.1.4
PHP Bug Type:     ICONV related
Bug description:  iconv's //TRANSLIT not working properly unde euc-jp

Description:
------------
I'm using iconv (with the //TRANSLIT option enabled in order 
to convert from a lot of different encodings to UTF-8.

Everything seems to be working fine, but I've found one 
situation where, perhaps, //TRANSLIT isn't working properly.

It happens when I'm trying to convert from euc-jp to utf-8 
and the string contains some 0xA0 chars.

All the string is english text, but with some spaces between 
words using the 0xA0 char (instead of the correct 0x20 
char).

I'm not an expert about euc-jp but it seems that the 0xA0 
char hasn't meaning at all in that encoding.

http://lfw.org/text/jp.html#euc

Perhaps it shouldn't break the conversion process, at least 
when running under //TRANSLIT mode? 

The //IGNORE mode seems to work ok, ignoring such character. 
If I read the documentatio well it seems that //TRANSLIT 
should transform such character (hopefully to one space, if 
I'm not wrong).



-- 
Edit bug report at http://bugs.php.net/?id=38425&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38425&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38425&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38425&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38425&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38425&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38425&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38425&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38425&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38425&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38425&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38425&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38425&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38425&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38425&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38425&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38425&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38425&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38425&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38425&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38425&r=mysqlcfg

Reply via email to