upper function for chinese issue

--=====000_Dragon103602458300_=====
Content-Type: text/plain;
charset="GB2312"
Content-Transfer-Encoding: quoted-printable

Dear Sir,

When I use mysql to maintain my chinese data, I found some bug=
for upper function:

mysql> select UPPER('=C2=F3');
+-------------+
| UPPER('=C2=F3') |
+-------------+
| =C2=D3 | <<error
+-------------+
1 row in set (0.00 sec)

mysql> select * from sys_synonym where =
locate(upper('=C2=F3'),upper(word))>0;
+-------+----------+
| id | word |
+-------+----------+
| 10 | =B9=E2=D3=B0=BA=CF=B3=C9 | << error
| 358 | =C2=F3 |
| 512 | =B5=A4=C2=F3 |
| 878 | =B9=E2=D3=B0 | << error
| 358 | =C2=F3=D7=D3 |
| 358 | =D0=A1=C2=F3 |
| 750 | =CF=C2=D3=EA | << error
| 988 | =D5=C2=D3=E3 |
| 14143 | =C2=F3=BF=CB=B7=E7 |
| 14016 | =B9=C8=C2=F3=BC=D3=B9=A4 |
| 12304 | =C2=F3=CC=EF |
+-------+----------+
11 rows in set (0.02 sec)

mysql> select * from sys_synonym where word like '=C2=F3';
+-------+----------+
| id | word |
+-------+----------+
| 10 | =B9=E2=D3=B0=BA=CF=B3=C9 | << error
| 358 | =C2=F3 |
| 512 | =B5=A4=C2=F3 |
| 878 | =B9=E2=D3=B0 | << error
| 358 | =C2=F3=D7=D3 |
| 358 | =D0=A1=C2=F3 |
| 750 | =CF=C2=D3=EA | << error
| 988 | =D5=C2=D3=E3 |
| 14143 | =C2=F3=BF=CB=B7=E7 |
| 14016 | =B9=C8=C2=F3=BC=D3=B9=A4 |
| 12304 | =C2=F3=CC=EF |
+-------+----------+
11 rows in set (0.02 sec)

if you can not read the chinse chars on your machine , pls view=
the attached image.

thanks!

Br,
Jimmy zhou


--=====000_Dragon103602458300_=====
Content-Type: text/plain; charset=us-ascii

--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs [at] m.gmane.org
--=====000_Dragon103602458300_=====--
Jimmy [ Di, 05 August 2003 05:04 ] [ ID #76140 ]

Re: upper function for chinese issue

Hello,

Jimmy wrote:
> Dear Sir,
>
> When I use mysql to maintain my chinese data, I found some bug for upper function:
>
> mysql> select UPPER('Âó');
> +-------------+
> | UPPER('Âó') |
> +-------------+
> | ÂÓ | <<error
> +-------------+
> 1 row in set (0.00 sec)

Which MySQL release do you use and what character set you have configured for both
server and client?

In order to accept bug report we need repeatable test case.

Best regards

--
Are you MySQL certified? -> http://www.mysql.com/certification
For technical support contracts, visit https://order.mysql.com/?ref=msal
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Alexander Keremidarski <salle [at] mysql.com>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
<___/ www.mysql.com




--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs [at] m.gmane.org
Alexander Keremidarsk[1] [ Di, 05 August 2003 09:32 ] [ ID #76142 ]

Re: upper function for chinese issue

Dear Sir,

When I use mysql to maintain my chinese data, I found some bug=
for upper function:

mysql> select UPPER('=C2=F3');
+-------------+
| UPPER('=C2=F3') |
+-------------+
| =C2=D3 | <<error
+-------------+
1 row in set (0.00 sec)

mysql> select * from sys_synonym where =
locate(upper('=C2=F3'),upper(word))>0;
+-------+----------+
| id | word |
+-------+----------+
| 10 | =B9=E2=D3=B0=BA=CF=B3=C9 | << error
| 358 | =C2=F3 |
| 512 | =B5=A4=C2=F3 |
| 878 | =B9=E2=D3=B0 | << error
| 358 | =C2=F3=D7=D3 |
| 358 | =D0=A1=C2=F3 |
| 750 | =CF=C2=D3=EA | << error
| 988 | =D5=C2=D3=E3 |
| 14143 | =C2=F3=BF=CB=B7=E7 |
| 14016 | =B9=C8=C2=F3=BC=D3=B9=A4 |
| 12304 | =C2=F3=CC=EF |
+-------+----------+
11 rows in set (0.02 sec)

mysql> select * from sys_synonym where word like '=C2=F3';
+-------+----------+
| id | word |
+-------+----------+
| 10 | =B9=E2=D3=B0=BA=CF=B3=C9 | << error
| 358 | =C2=F3 |
| 512 | =B5=A4=C2=F3 |
| 878 | =B9=E2=D3=B0 | << error
| 358 | =C2=F3=D7=D3 |
| 358 | =D0=A1=C2=F3 |
| 750 | =CF=C2=D3=EA | << error
| 988 | =D5=C2=D3=E3 |
| 14143 | =C2=F3=BF=CB=B7=E7 |
| 14016 | =B9=C8=C2=F3=BC=D3=B9=A4 |
| 12304 | =C2=F3=CC=EF |
+-------+----------+
11 rows in set (0.02 sec)

if you can not read the chinse chars on your machine , pls view=
the attached image.

thanks!

Br,
Jimmy zhou


What charset are you using ???

What version of MySQL are you using ??

Can you try 4.1 which has better support for Chinese ??

--

Regards,

--
For technical support contracts, go to https://order.mysql.com/?ref=msmi
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic <sinisa [at] mysql.com>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB
/_/ /_/\_, /___/\___\_\___/ Fulltime Developer and Support Coordinator
<___/ www.mysql.com Larnaca, Cyprus


--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs [at] m.gmane.org
Sinisa Milivojevic [ Di, 05 August 2003 13:45 ] [ ID #76146 ]
Datenbanken » gmane.comp.db.mysql.bugs » upper function for chinese issue

Vorheriges Thema: replace from msql2mysql and filedates
Nächstes Thema: Lock error in Innodb(READ-COMMITED)