Hi,
I've detected the same problem with WebVelocity 1.1. Now it is the
class PostgreSQLConnection where the method
stringEncodingName
stringEncodingName isNil ifTrue: [stringEncodingName := #utf8].
^stringEncodingName
has to be changed.
Best regards
Johannes
On 7 Jul. 2009, 08:30, "masashi.umezawa" <
masashi.umez...@gmail.com>
wrote:
> Hello all,
>
> I tried Web Velocity for the first time. Thanks for the really nice
> product!
> However, I've encountered an encoding error when I tried to store
> multibyte strings to PostgreSQL.
> I've just made a blog sample according to the walkthrough tutorial.
>
> The error seems to be related to PostgreSQLDriver's default encoding
> settings. So I've changed the code.
>
> PostgreSQLDriver>>stringEncodingName
> stringEncodingName isNil ifTrue: [stringEncodingName := #utf8].
> ^stringEncodingName
>
> By using #utf8 instead of #default, multibyte strings were stored/
> retrieved correctly.
>
> Is there more elegant way to set the database connection encoding? I
> think it would be better if I can set such settings via Web Velocity's
> database configuration menu. (Or even better it would be set
> automatically?)
>
> Best regards,
> ---
> [:masashi | ^umezawa]