Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Closed Thread
Use utf8_unicode_ci instead of latin_swedish?
Old 12-09-2009, 07:26 AM Use utf8_unicode_ci instead of latin_swedish?
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
Hi Guys,

I have a site that has visitors from many countrys ( In this case hungary )

I used to use latin_swedish, but have changed to utf8_unicode_ci in my MYSQL

Does utf8_unicode_ci support more chars and is best to use for multilingual ?

-Graham
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
View Public Profile Visit lynxus's homepage!
 
 
Register now for full access!
Old 12-09-2009, 07:38 AM Re: Use utf8_unicode_ci instead of latin_swedish?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://dev.mysql.com/doc/refman/5.1/...-charsets.html
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 12-09-2009, 07:41 AM Re: Use utf8_unicode_ci instead of latin_swedish?
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
Ah ok,
I do have a problem though with PHP and recieveing text that has a strange char in it.

if i send it this word for instance " Kedvezmény " It wont pick it up and things its value is null because of the é

How can i get PHP to just allow this type of char into a $var?
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
View Public Profile Visit lynxus's homepage!
 
Old 12-09-2009, 07:47 AM Re: Use utf8_unicode_ci instead of latin_swedish?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You need to be looking at

http://php.net/manual/en/book.unicode.php
&
http://www.php.net/manual/en/book.mbstring.php
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 12-09-2009, 08:02 AM Re: Use utf8_unicode_ci instead of latin_swedish?
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
Ah ha, Thanks.

Looks like ive fixed most of my issues
I was using mysql_real_escape_string as well as a much of other char checking.
Ive removed some of my other char checking and thats fixed the issue.

real_escape should take care of the bad stuff in mysql hopefully?
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
View Public Profile Visit lynxus's homepage!
 
Old 12-10-2009, 06:35 AM Re: Use utf8_unicode_ci instead of latin_swedish?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Closed the thread because the spammer morons are now targeting it
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Closed Thread     « Reply to Use utf8_unicode_ci instead of latin_swedish?
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.60805 seconds with 12 queries