[Zope-DB] DCoracle2 - truncates UTF-8 string with national characters

2005-05-23 Thread Maciej Wiśniowski
Hi! We're using DCOracle2 with Zope. On the client machine I've NLS_LANG = polish_poland.UTF8. The problem appears when I'have 30 characters long column in database, and the text stored in this column contains national characters and is full length (30 characters). When I'm trying to execute sel

[Zope-DB] dtml-if query

2005-05-23 Thread Sungmook Kim
Hi, I'm working on a simple self-made board based upon mysqldb. The idea is that I want anonymous people allow to write with a password protection. Now I want them to be able to delete and edit articles. (but of course only with their password) I'd like to make a if query in addition to the code

Re: [Zope-DB] DCoracle2 - truncates UTF-8 string with national characters

2005-05-23 Thread Dieter Maurer
Maciej Wi-Bśniowski wrote at 2005-5-23 14:54 +0200:-A >We're using DCOracle2 with Zope. On the client machine I've >NLS_LANG = polish_poland.UTF8. > >The problem appears when I'have 30 characters long column in database, >and the text stored in this column contains national characters and is full

Re: [Zope-DB] DCoracle2 - truncates UTF-8 string with national characters

2005-05-23 Thread Wei-Hao Lin
Maciej Wiśniowski <[EMAIL PROTECTED]> writes: > We're using DCOracle2 with Zope. On the client machine I've > NLS_LANG = polish_poland.UTF8. > > The problem appears when I'have 30 characters long column in database, My ugly hack in dco2.c may be relevant. http://mail.zope.org/pipermail/zope-db/2

Re: [Zope-DB] dtml-if query

2005-05-23 Thread Greg Fischer
Looks like you are kind of on track, try this... Article updated! Password incorrect. Article not updated. You have to go get the "password" variable somewhere though. Maybe you need a quick zsql method that grabs it. Make one called "getpwd" with arguments of "password" and "articl