K2InformaticsGmbH / erloci

Erlang Oracle native driver - DEPRECATED, see https://github.com/K2InformaticsGmbH/oranif instead
Apache License 2.0
37 stars 11 forks source link

How to define character set on connect #3

Closed pradeeguru closed 10 years ago

pradeeguru commented 10 years ago

There are some unicode data (utf8) in oracle db. In order to get them properly,I hope I need to define charset when connecting to db. Otherwise I'm getting a line of questions marks for utf8 data. Database is already configured to use AL32UTF8. Does erloci supports that? I tried going through the code. but couldn't find a way to define charset.

c-bik commented 10 years ago

Please don't put questions as issues. Write me directly at razorpeak@gmail.com.

c-bik commented 10 years ago

erloci is a raw driver. I tried to keep character encoding dependencies outside the realm of the driver (it isn't complete though yet). So, a read of CHAR or VARCHAR/2 field is presented as byte array (erlang binary). Interpreting the content is users responsibility.

pradeeguru commented 10 years ago

Thanks for your reply.