ahmedo01 Posted March 4, 2015 Share Posted March 4, 2015 Hello all, I have problem with gridlists. Here is my table. In my mysql table, it s supports turkish special characters but when i get data from table to gridlist it not supports turkish characters it shows ?? for turkish characters. How can i fix it? Which collation i need to select? Or it is gridlist bug? Thanks for help. Link to comment
Addlibs Posted March 6, 2015 Share Posted March 6, 2015 Try using HTML numeral entities with in the database, in conjunction with the following function to unescape it: function unescape(str) str = string.gsub( str, '<', '<' ) str = string.gsub( str, '>', '>' ) str = string.gsub( str, '"', '"' ) str = string.gsub( str, ''', "'" ) str = string.gsub( str, '(%d+);', function(n) return string.char(n) end ) str = string.gsub( str, '(%d+);', function(n) return string.char(tonumber(n,16)) end ) str = string.gsub( str, '&', '&' ) -- Be sure to do this after all others return str end --Source: [url=http://stackoverflow.com/questions/14899734/unescape-numeric-xml-entities-with-lua]http://stackoverflow.com/questions/1489 ... s-with-lua[/url] Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now