[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Multi-language Character Sets (PHP & MySql)

Posted on 2003-11-30
1
Medium Priority
?
887 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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month19 days, 20 hours left to enroll

873 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