Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-03-2004, 10:18 AM   #1
Registered: Nov 2002
Posts: 57

Rep: Reputation: 15
mysql query for multibyte string

i'm doing program in C

I'm querying a multibyte string. The result was unsuccessful.

SELECT `key` FROM `table` WHERE `words`='mb' ORDER BY words DESC LIMIT 1

mb is a multibyte string.

I've try to escape all the character, but the result is the same.
thank in advanced.
Old 12-03-2004, 10:27 AM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What type of field is words? Also, what charset is the string. You can try to type the SELECT manually from mysql console to see if it works that way.
Old 12-03-2004, 11:50 AM   #3
Registered: Nov 2002
Posts: 57

Original Poster
Rep: Reputation: 15
u remind me.
thank. i will try.
all are in text field.
Old 12-03-2004, 08:29 PM   #4
Registered: Nov 2002
Posts: 57

Original Poster
Rep: Reputation: 15
this solve.

when dealing with mutl-byte character,
use blob field may be very helpful


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cleanest and foolproof way to append query string to URLs (PHP) vharishankar Programming 4 07-11-2005 10:38 AM
Perl/regexp help... - query string parsing... lowpro2k3 Programming 4 05-11-2005 05:18 PM
MySQL and PHP: Multibyte Character Support Magsol Programming 4 04-26-2005 10:24 PM
Send query string via MIRC script cadj Programming 0 08-25-2004 06:25 AM
PHP random additions to query string Riley Programming 2 07-09-2003 02:38 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration