473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Unicode Support for PHP5

When will PHP get Unicode support for PHP5? I realize that English is
what everyone speaks when they want to do business, but I potentially
could be not getting clients for my freelancing work simply because I
program in PHP and PHP doesn't support their character set. This
problem has been known for awhile now, mentioned in lots of forums and
recently gotten major exposure from the popular Joel On Software blog.
Yet I see that the Unicode module isn't ready yet even after two
year's effort on it.
Mar 18 '08 #1
2 2649
..oO(Roberto)
>When will PHP get Unicode support for PHP5?
Native Unicode support will come with PHP 6.
>I realize that English is
what everyone speaks when they want to do business, but I potentially
could be not getting clients for my freelancing work simply because I
program in PHP and PHP doesn't support their character set. This
problem has been known for awhile now, mentioned in lots of forums and
recently gotten major exposure from the popular Joel On Software blog.
What exactly is your problem? I already use Unicode (UTF-8) for quite a
while without any trouble. You just have to know the limitations in PHP
5 and how to work around them. Some more details might help.

Micha
Mar 18 '08 #2
Roberto wrote:
When will PHP get Unicode support for PHP5?
Full Unicode support is due in PHP 6. Developer previews are already
available, and Unicode support on them is mostly pretty good.

But even in PHP 5 (and 4), Unicode output is mostly usable. You just have
to remember that the built-in string functions are not Unicode-aware, and
treat text as strings of octets instead of multi-byte characters. So for
example:

PHP 5: echo strlen('ビ'); // prints "3"
PHP 6: echo strlen('ビ'); // prints "1"

PHP 5 is usable for non-ASCII character sets -- it just means you have to
think about string functions a little more carefully. The mbstring module
<http://www.php.net/mbstringis a great help too.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 11:20.]

The Semantic Web
http://tobyinkster.co.uk/blog/2008/03/09/sw/
Mar 18 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
by: Zenobia | last post by:
Recently I was editing a document in GoLive 6. I like GoLive because it has some nice features such as: * rewrite source code * check syntax * global search & replace (through several files at...
32
by: Wolfgang Draxinger | last post by:
I understand that it is perfectly possible to store UTF-8 strings in a std::string, however doing so can cause some implicaions. E.g. you can't count the amount of characters by length() | size()....
13
by: Tomás | last post by:
Let's start off with: class Nation { public: virtual const char* GetName() const = 0; } class Norway : public Nation { public: virtual const char* GetName() const
0
by: furious_radish | last post by:
I have been trying to use php5's xml support. My OS is Ubuntu 5.10 I am running apache2 with php5, no problems there. I installed the php5-xsl package but when I use any xsl related functions...
4
by: Chuck Anderson | last post by:
I am trying to install Php5 on my WindowsXP machine (at home, not on the 'net). I downloaded the Php Windows binary at php.net, unzipped it to c:/Php5, changed my Apache config file to use Php5...
10
by: Jan Jaap | last post by:
Hi! I read the folowing discussion:...
17
by: Adam Olsen | last post by:
As was seen in another thread, there's a great deal of confusion with regard to surrogates. Most programmers assume Python's unicode type exposes only complete characters. Even CPython's own...
8
by: deko | last post by:
I've just loaded phpMyAdmin on a Debian Linux server with Apache2, MySql5 and PHP5. myserver # dpkg -l | grep php ii libapache-mod-php5 5.2.0-8+etch4 ii libapache2-mod-php4 4.4.4-8+etch2 ii...
29
by: Ioannis Vranos | last post by:
Hi, I am currently learning QT, a portable C++ framework which comes with both a commercial and GPL license, and which provides conversion operations to its various types to/from standard C++...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.