Is there any way to convert some column from iso to utf8?
Something like... SELECT Id, UTF8(Name FROM table;
I need because JSON issue, i need to convert it in PHP using utf8 funcions... I'd like to receive the data already converted.
Also consider casting the column to NCHAR using TO_NCHAR( col ) or CAST( col as NCHAR ). You can also then manipulate the string as UTF8 within the database server itself as needed. I'm expecting (though I haven't tried it) that JSON will do "the right thing" with NCHAR values.
answered 01 Apr '10, 15:08
Vincent has pointed you in the right direction in his comment to your question.
If you want to convert your data from database character to UTF8 then using
will convert @your_db_char_data from the database character set to UTF8.
For more information on the csconvert function see http://dcx.sybase.com/index.html#1101en/dbreference_en11/csconvert-alphabetical-functions.html
answered 01 Apr '10, 12:06