Hello,

Johnny Blonde wrote:

> SELECT RDB$CHARACTER_SET_NAME FROM RDB$DATABASE
> told me <null> as character-set
> and the vendor couldn´t tell me anything else.
>
> if i specify a characterset within the dsn i alays run into this bunch
> of errors.

It is because kinterbasdb can't convert data from something unknown to
charset you specified.
It is fault of database creators - they should specify charset when
database was created.

> if i don´t and try it with the object method
> (someString.encode('utf-8')) i get an error as well.
>
> the only way to do it is like
> print unicode(someLegacyString, 'iso-8859-1')

You could wrote custom translator for plain kinterbasdb:
http://kinterbasdb.sourceforge.net/dist_docs/usage.html#adv_param_conv_dynamic_type_translation

But I'm unsure if it is possible with SQLObject yet.

--
Oleg


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to