1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    75
    Vote Rating
    1
    owenho is on a distinguished road

      0  

    Default problem of string between php and js

    problem of string between php and js


    Hi all,
    i have a textfield , in keyup listener i send the value of textfield to php file with a store
    when i see the json output: is like this:
    Code:
    {"result": [{"value":"\u00c3\u00a9"}]}
    i test the unescape and escape function but the same problém.
    any idea

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Location
    Ukraine, Mykolayiv
    Posts
    99
    Vote Rating
    1
    rsqw is on a distinguished road

      0  

    Default


    owenho, it's just a UTF-8 encoding, where is the problem?

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    75
    Vote Rating
    1
    owenho is on a distinguished road

      0  

    Default


    My Problem is when i send the value like this
    Code:
    \u00c3\u00a9
    in request to my sgbd .
    he get me an rror like this:
    Code:
     pg_query() [<ahref='function.pg-query'>function.pg-query</a>]: Query failed: ERREUR:  séquence d'octets invalide pour l'encodage « UTF8 » : 0xe3a925HINT:  Cette erreur peut aussi survenir si la séquence d'octets ne correspond pas
    au jeu de caractères attendu par le serveur, le jeu étant contrôlé par
    « client_encoding ». in <b>C:\wamp\www\MesExt\file.php</b> on line <b>16</b><br />
    Query failed: ERREUR:  séquence d'octets invalide pour l'encodage « UTF8 » : 0xe3a925
    HINT:  Cette erreur peut aussi survenir si la séquence d'octets ne correspond pas
    au jeu de caractères attendu par le serveur, le jeu étant contrôlé par
    « client_encoding ».
    how can i resolve this problem

  4. #4
    Sencha User
    Join Date
    May 2012
    Location
    Turkey,İstanbul
    Posts
    25
    Vote Rating
    0
    hasimseo is on a distinguished road

      0  

    Default


    when you get string use decode . i hope that will help ...

    Code:
    Ext.decode(yourstring)

Thread Participants: 2

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