[Sqlrelay-discussion] character encodings
Brought to you by:
mused
|
From: Cal H. <ca...@fb...> - 2010-05-03 19:51:06
|
Hi everyone, A quick question on locale settings in SQL Relay -- is there any way to request the returned string of sqlrcursor::getField() in a specific encoding? In one example, the registered trademark symbol (®) from DB2 comes back as two characters, ® which leads me to believe SQL Relay is converting to UTF-8 somewhere. Our data in DB2 is stored as Windows-1252, and we have our web servers throw out a Content-Type header of ISO-8859-1. (When I set the Content-type header to UTF-8, my test application displays normally) Is there an "easy" method to get the raw contents from the database without the translation? (Like, commenting something out in the sql relay source) Or, do you plan on adding locale translations to the API in the near future? Thank you, --Cal |