?
Solved

Multi-language Character Sets (PHP & MySql)

Posted on 2003-11-30
1
Medium Priority
?
883 Views
Last Modified: 2013-12-12
Hi,

I've read Mysql 4.1 to see how to set the charater set values at database, table and even column level, when working with multi language characters.

Very simply, can PHP handle passing over different character sets to MySql e.g. insert arabic characters, then insert ISO 8859-1 (western) characters.

Best wishes
sabi97
0
Comment
Question by:sabi97
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
drew22 earned 500 total points
ID: 9845659
have you checked out php's utf8_encode() and utf8-decode()?

utf8_encode() -- encodes an ISO-8859-1 string to UTF-8 unicode
http://us3.php.net/manual/en/function.utf8-encode.php

utf8-decode() -- converts a string with ISO-8859-1 characters encoded with UTF-8 to single-byte ISO-8859-1.
http://us3.php.net/manual/en/function.utf8-decode.php

aw
0

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question