Ask a Question related to MySQL, Design and Development.
-
starritt@gmail.com #1
Converting between character sets
If I have a column with the word Dürer in it can I use the Convert
function to convert it to Durer by down-shifting into a 7 bit character
set?! -- I can do this in Oracle. I am scripting with PHP and whenever
I use convert it seems to leave me with a situation where ü becomes a
question mark.
The database is latin1 by default -- if this isnt possible can anybody
think or point me toward a way of querying a column and bring back
records that might have Dürer or Durer only using Durer in my where
clause -- diacritic insensitivity essentially. Working in Oracle
great, but here I am stuck --
starritt@gmail.com Guest
-
Romanian Character Sets
Help! We have a PDF with Romanian characters which views wonderfully. When we try to open it with Adobe Acrobat Professional v6.0 the characters come... -
InDesign ME Character Problem! Character-Change by Printing or saving *.PS!
Hi everybody! I have some problems with ME Version. When i want to print a page with FARSI-Text in it, he changes one character! on screen he... -
Why did Photoshop CS quit suddenly in the middle of making sets? Action sets
G4/450/dual/OSX33/1gigRAM/45gigHD/Photoshop CS Does anyone know why Photoshop CS quit suddenly in the middle of making Action sets, saying I had... -
CS quit suddenly in the middle of making Action sets Action sets,
G4/450/dual/OSX33/1gigRAM/45gigHD/Photoshop CS Does anyone know why Photoshop CS quit suddenly in the middle of making Action sets, saying I had... -
Converting test to filemaker... is there An easy way to get 93 sets of answers into value lists?
I'm redoing a test for somebody. Is there an easy way to get the answers into radio buttons, I have 93 items on 10 tests. The work load is... -
Axel Schwenke #2
Re: Converting between character sets
[email]starritt@gmail.com[/email] wrote:
When using MySQL you should stay away from Oracle "solutions" ;-)>
> If I have a column with the word Dürer in it can I use the Convert
> function to convert it to Durer by down-shifting into a 7 bit character
> set?! -- I can do this in Oracle.
If your MySQL version is 4.1 or above you can use MySQLs collation> The database is latin1 by default -- if this isnt possible can anybody
> think or point me toward a way of querying a column and bring back
> records that might have Dürer or Durer only using Durer in my where
> clause -- diacritic insensitivity essentially.
support to achive diacritic insensitive string comparison.
(if your MySQL version is 4.0 or lower you should consider upgrading)
The latin1_german1_* collations work as you expect:
mysql> SELECT 'Dürer' = 'Durer' COLLATE latin1_german1_ci AS german1,
'Dürer' = 'Durer' COLLATE latin1_german2_ci AS german2;
+---------+---------+
| german1 | german2 |
+---------+---------+
| 1 | 0 |
+---------+---------+
The relevant chapter in the manual is:
[url]http://dev.mysql.com/doc/refman/5.0/en/charset.html[/url] -- especially
[url]http://dev.mysql.com/doc/refman/5.0/en/charset-we-sets.html[/url] -- and
[url]http://dev.mysql.com/doc/refman/5.0/en/charset-collate.html[/url]
XL
--
Axel Schwenke, Senior Software Developer, MySQL AB
Online User Manual: [url]http://dev.mysql.com/doc/refman/5.0/en/[/url]
MySQL User Forums: [url]http://forums.mysql.com/[/url]
Axel Schwenke Guest



Reply With Quote

