Hybrid View

  1. #1
    Ext User
    Join Date
    Dec 2008
    Posts
    35
    Vote Rating
    0
    Selfish is on a distinguished road

      0  

    Default [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:

    PHP Code:
    ScheduleColumnModel = new Ext.grid.ColumnModel(
        [{
            
    header'Дата',
            
    dataIndex'EventDate',
    ... 
    And that header is shown in weird symbols! 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).

  2. #2

  3. #3
    Ext User
    Join Date
    Dec 2008
    Posts
    35
    Vote Rating
    0
    Selfish is on a distinguished road

      0  

    Default


    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.
    PHP Code:
    header('Content-type: text/html; charset=UTF-8');
    //
    // here goes code for database connection
    // 
    mysql_query("SET NAMES UTF8"); 
    2) All the files involved are in UTF-8 encoding
    3) In the database all the text fields are utf8_general_ci

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar