Re: MultiByte Character Sets and False Matches
From: Takanori Kawai (GCD00051_at_nifty.ne.jp)
Date: 06/30/04
- Previous message: Jie: "Re: OCIDefineObject error"
- In reply to: Peter J. Holzer: "Re: MultiByte Character Sets and False Matches"
- Next in thread: Jeff Zucker: "Re: MultiByte Character Sets and False Matches"
- Reply: Jeff Zucker: "Re: MultiByte Character Sets and False Matches"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <dbi-users@perl.org> Date: Wed, 30 Jun 2004 08:35:04 +0900
Hi.
>Which is hardly surprising:
YES. Of course.
>> my $hSt =3D $hDb->prepare("SELECT * FROM t1 WHERE NAME like ?");
>> $hSt->execute("%\xB9\xA5%"); #SUKI in KANJI(EUC-JP)
> You are telling MySQL to do the matching. So the matching will use
> whatever character set the database thinks the data uses. If you tell
> the database that the data is ShiftJIS when it is really EUC-JP,
> confusion is to be expected.
I just want to point out what the problem.
-Use appropriate DBMS with character set
-There should be no problem in DBDs
--Regular expressions for matching is in the SQL::Statement (not in
DBD::CSV)
> I could not get any information on mismatching in other character sets
> but do you mean there are no problems with mismatching in DBD::CSV if I
> use UTF8?
I hope so. But other problems might occur. Be careful.
#tu.pl(attached file) seems to work correctly with "no utf8;"
# But with "use utf8;", it will get no lines.
==============================================
KAWAI, Takanori(Hippo2000)
Mail: GCD00051@nifty.ne.jp kwitknr@cpan.org
http://member.nifty.ne.jp/hippo2000/index_e.htm
http://www.hippo2000.info/cgi-bin/KbWikiE/KbWiki.pl
May we translate your pods into Japanese?
-- Japanized Perl Resource Project
http://sourceforge.jp/projects/perldocjp/
==============================================
- application/octet-stream attachment: tu.pl
- Previous message: Jie: "Re: OCIDefineObject error"
- In reply to: Peter J. Holzer: "Re: MultiByte Character Sets and False Matches"
- Next in thread: Jeff Zucker: "Re: MultiByte Character Sets and False Matches"
- Reply: Jeff Zucker: "Re: MultiByte Character Sets and False Matches"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|