Forum
Topic RSS
01:37
23/02/2010
OfflineHi to all!
After a lot of work i'm developing with jqgrid but there is a problem with my app.
I'm adding and deleting rows from my db but like my db uses spanish characters when i try to add words which have accent like "áéíóú" or "ñ" what i get in my db is this áéÃóú. If i insert some values with mysql browser like 'día' when i load my jqgrid i just have a 'd' and the rest of my string isn't loaded.
So i decided to try with firebug to see what was being send t othe server and i found this:
descMotivo variables should be éléfánté so i'm guessing i should use something like hrmlspecialchars() function or another php string function to handle that but can this be done?
21:25
Moderators
30/10/2007
OfflineHello,
Sorry, but this is not jqGrid problem and this issue is discussed many times here:
Short:
1. Your html page should have appropriate meta for your language.
2. When you insert/update/delete your connection should have the appropriate caharcter set - in mysql this is done with SET NAMES command before doing evrething.
3. Your database should be encoded in the appropriate way.
4. When you send the output to the grid you should set the appropriate headers.
Hope this helps
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 994
Currently Online:
40 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home