Results 1 to 6 of 6

Thread: What is the unicode in PHP V5.3

  1. #1
    Join Date
    Feb 2010
    Posts
    154

    What is the unicode in PHP V5.3

    Hi all,

    Recently i am working on a project in new version of PHP v 5.3. I find that new feature that is Unicode. I think this will help improve your PHP within the creation of an international application of the procedures. This will not solve all of the localization issues - especially for translation; such tasks could be an additional PHP libraries, such as GNU gettext, be well handled. So can anybody explain me what any extra feature of Unicode in PHP. Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: What is the unicode in PHP V5.3

    Unicode in PHP V5.3 has been properly internationalized application should be able to handle the preparation of the system in different write data. English and other languages used in Western Europe are based on the Latin text-based, and only use Latin characters - sometimes attached on the accents (diacritical marks). If you walk east, will face the Cyrillic alphabet, Hebrew and Arabic-speaking Middle East, as well as Hindi. Then the Chinese, Japanese and several other Oriental languages 10. Systems are most commonly used characters included in the Unicode character set. So it will handle this issue.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    What is the unicode in PHP V5.3

    Unicode characters is still very abstract. When stored in the Memory or disk or in the Network on the transmission, the computer system must be Unicode characters encoded. There are several codes can be used for Unicode: The two most commonly used is the UTF-8 and UTF-16. The modern development environment, such as the Java technology and Microsoft . net Framework and have the use of Unicode characters and strings for Unicode data types. Thus, dealing with the use of Unicode characters in the text for the developers to become completely transparent. Library function is responsible for correct handling of all input and output (UI, HTML forms,Database, XML) and, if necessary to convert it into a Unicode string used to indicate the internal code. Check and reply.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: What is the unicode in PHP V5.3

    PHP support for Unicode in the lack of unpleasant, but through some workaround, you can still develop appropriate within PHP internationalized applications. The first issue to be resolved is the proper Unicode data, said. PHP using the so-called binary strings - in PHP, a string is not a Unicode character string, but a byte sequence. You can use UTF-8 encoding for all strings in the internal memory, and to ensure that all input to this script, as well as all of the output from this script have been properly encode and decode.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What is the unicode in PHP V5.3

    You can use except other than UTF-8 encoding, but compared to other systems, use UTF-8 is much less troublesome. A lot of PHP libraries are the default string is UTF-8 encoding, including the handling of XML All functions and the newly added intl libraries. To successfully located in the grounds for UTF-8 encoded string, preferably in UTF-8 for character encoding and to UTF-8 sent from the script output. All things are transformed into UTF-8 does not solve all the problems. If an accented Latin characters, or a non-Latin characters in UTF-8 encoding, will be in two four-byte, three bytes, which makes the calculation length of the string or handle sub-strings PHP string functions at a loss. Check and reply.

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    What is the unicode in PHP V5.3

    You can write the system prepared by a variety of the length of the string to be the wrong calculations. Only contains the text of the Latin alphabet will have the right to return the result. In this case, this problem can be through the use of library functions from the mbstring been resolved. Thus, to get to UTF-8 encoded string of the correct length, you must use mb_strlen (string, "utf-8"), rather than strlen (string). Use this on PHP V5.3 and reply.

Similar Threads

  1. how to embed Unicode fonts in Opera
    By Dexterr in forum Technology & Internet
    Replies: 8
    Last Post: 23-08-2011, 10:26 AM
  2. MS excel is not asking for CSV and Unicode (or UTF-8)
    By Kshama in forum Windows Software
    Replies: 5
    Last Post: 16-07-2011, 07:15 PM
  3. Displaying the value of a Unicode character
    By Remedy in forum Software Development
    Replies: 5
    Last Post: 26-02-2010, 02:29 AM
  4. Regular expressions for unicode
    By Solaris in forum Software Development
    Replies: 4
    Last Post: 15-12-2009, 12:20 PM
  5. Conversion from Unicode to Hindi
    By D_chapple in forum Software Development
    Replies: 4
    Last Post: 28-11-2009, 06:48 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,666,068.84360 seconds with 17 queries