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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi