PDA

View Full Version : Charset Problems with uploading a language from .xml file


Ori
Thu 5th Jun '08, 6:17am
Hello,

I try to upload a new language (in addition to the english one) and have Problems with the Charset.

I also set the MySQL charset in includes/config.php file by uncommenting this line:
// $config['Mysqli']['charset'] = 'my charset';

But, it seems to me that this change of setting at the config.php file doesn't took part about importing from the ADMINCP.

It seems like all the files that i will import from the ADMINCP will be injected to the MYSQL database with the default charset of the vB board ignorance the change i set at the config.php file.

In simple php code, with uncomplicated line i set the charset of the data that injected to my MYSQL database:
mysql_query("SET NAMES ' *my language* '");

But here, at the data that imported by the ADMINCP i d'ont know how to set a NAMES for my queries.

How can I solve this problem ?

Thanks.

mlx
Thu 5th Jun '08, 6:29am
Importing language files will always use ISO-8859-1. It's hardcoded.

What are you using? UTF8? Then try this:


Open the XML file in UltraEdit
File -> Conversions -> UNICODE/ASCII/UTF-8 to UTF-8 (ASCII Editing)
Do NOT change the line that says encoding="ISO-8859-1"
Save it and try to import it again
Change the language setting to UTF8

Ori
Thu 5th Jun '08, 6:38am
no UTF8,

the names in the database needs to be in hebrew,
and the page incoding is windows-1255

Ori
Thu 5th Jun '08, 5:48pm
someone ?

Ori
Sat 7th Jun '08, 8:04pm
help, i need somebody.. help :O