If we're not using English environment browser, the content of install_registry.reg will convert from UTF-8 to local encoding. But Gallery2 will using 'Windows-xxxx' as the encoding name, but for iconv(), it will using 'CPxxx' not 'Windows-xxx'.
for example, for zh-TW, the locale should be 'CP950', not 'Windows-950'.
patch to fix encoding problem for generate install_registry.reg
Logged In: YES
user_id=942712
Originator: NO
The contents of install_registry should always be encoded in the charset of your system.
The language is irrelevant of the encoding.
What exactly are you requesting?
That we use CP950 for iconv but Windows-950 for mb_convert_encoding and recode_string?
Can you please point us to the documentation / specification as a reference?
Thanks.
Logged In: YES
user_id=132010
Originator: YES
for mb_convert_encoding(), only CP1251, CP1252 can use as Windows-1251, Windows-1251.
mbstring encoding: http://www.php.net/manual/en/ref.mbstring.php
iconv encoding: http://www.gnu.org/software/libiconv/
Using CPxxx is better than Windows-xxx, the best solution is using the correct encoding name for each language (there is no rule for the name).
The current code in Gallery will make an empty file for most non-English language after convert the encoding.
Logged In: YES
user_id=942712
Originator: NO
Added / changed in SVN / G2.3.
Thanks