-
14 Feb 2009 4:02 AM #1
[SOLVED] Encoding question
[SOLVED] Encoding question
Hi!
English is not the native language for the system i'm working on, so i had to use some techniques to get it working. There's only thing i cannot understand:
In my .js file there's a ColumnModel description where in header i use Russian letters:
And that header is shown in weird symbols!PHP Code:ScheduleColumnModel = new Ext.grid.ColumnModel(
[{
header: 'Дата',
dataIndex: 'EventDate',
...
What is the matter?
Thank you!!
P.S.
The .js-file is in UTF-8 format.
The data from database is provided in UTF (i put mysql_query("SET NAMES UTF8") before the query).
-
14 Feb 2009 6:19 AM #2MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
20 Feb 2009 9:16 AM #3
Thank you everyone!, a solved the problem:
1) I put the following code into my script that stores all the data from my grid in my databse.
2) All the files involved are in UTF-8 encodingPHP Code:header('Content-type: text/html; charset=UTF-8');
//
// here goes code for database connection
//
mysql_query("SET NAMES UTF8");
3) In the database all the text fields are utf8_general_ci


Reply With Quote