Skip to Content.
Sympa Menu

devel - Re: [sympa-developpers] SQLSource encoding

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: IKEDA Soji <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-developpers] SQLSource encoding
  • Date: Fri, 26 Jul 2013 01:54:49 +0900

On Thu, 25 Jul 2013 15:48:45 +0200
David Verdin <address@concealed> wrote:

> Hi,
>
> I'm merging SQLSource to Sympa::Datasource::SQL (the problem will be the
> same in Sympa::Database).
>
> Problem: In the 6.2 branch, Soji added the enforcement of the UTF-8
> encoding on the client side for all supported engines. It was done in
> the "establish_connection" sub. Now, in SQL.pm, we only have a "connect"
> sub with no part related to a given RDBMS.The sub modules for each RDBMS
> don't have a "connect" sub. So where can we enforce UTF-8 usage? Can we
> create an "enforce_utf8" sub in each module, which will be called in the
> SQL::connect?
>
> I commit the SQL.pm without this problem solved. I'll fix it once we
> have agreed over a solution.

I agree to Guillaume: Enforcing UTF-8 (especially for MySQL "utf8"
or "utf8mb4") would be done outside of subclasses. On Sybase it
should be done before connection depending on environment variable.

Regards,

--- Soji


> Regards,
>
> David
>
> --
> A bug in Sympa? Quick! To the bug tracker!
> <https://sourcesup.renater.fr/tracker/?group_id=23>
> RENATER logo
> *David Verdin*
> Infrastructure pour les Services Informatiques
>
> Tél : +33 2 23 23 69 71
> Fax : +33 2 23 23 71 21
>
> www.renater.fr <http;//www.renater.fr>
> RENATER
> 263 Avenue du Gal Leclerc
> 35042 Rennes Cedex
>
>
>


--
株式会社 コンバージョン セキュリティ&OSSソリューション部 池田荘児
〒231-0004 神奈川県横浜市中区元浜町3-21-2 ヘリオス関内ビル7F
e-mail address@concealed TEL 045-640-3550
http://www.conversion.co.jp/




Archive powered by MHonArc 2.6.19+.

Top of Page