LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-03-2004, 11:18 AM   #1
onnyloh
Member
 
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, 11:27 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
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, 12:50 PM   #3
onnyloh
Member
 
Registered: Nov 2002
Posts: 57

Original Poster
Rep: Reputation: 15
u remind me.
thank. i will try.
all are in text field.
i
 
Old 12-03-2004, 09:29 PM   #4
onnyloh
Member
 
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
 
  


Reply


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 11:38 AM
Perl/regexp help... - query string parsing... lowpro2k3 Programming 4 05-11-2005 06:18 PM
MySQL and PHP: Multibyte Character Support Magsol Programming 4 04-26-2005 11:24 PM
Send query string via MIRC script cadj Programming 0 08-25-2004 07:25 AM
PHP random additions to query string Riley Programming 2 07-09-2003 03:38 PM


All times are GMT -5. The time now is 05:26 PM.

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