Solved

Multi-language Character Sets (PHP & MySql)

Posted on 2003-11-30
1
868 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 125 total points
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
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 count occurrences of each item in an array.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now