Zend - The PHP Company




I18N

Add Code


Auto_Lang_Accepter  

Type: application
Added by: Veso
Entered: 07/10/2002
Last modified: 31/10/2001
Rating: - (fewer than 3 votes)
Views: 5060
A simple script who use $HTTP_ACCEPT_LANGUAGE variable for choice adequate to end-user language version of the web site


Convert UTF-8 encoded string to Unicode entities  

Type: code fragment
Added by: ronen
Entered: 02/03/2002
Last modified: 07/12/2001
Rating: - (fewer than 3 votes)
Views: 11937
Takes a string of utf-8 encoded characters and converts it to a string of unicode entities. Each unicode entitiy has the form nnnnn; or nnn; n={0..9} and can be displayed by utf-8 supporting browsers. If the character passed maps as lower ascii it stays as such (a single char) instead of being presented as a unicode entity


iscii2utf8  

Type: class
Added by: sunish_mv
Entered: 02/04/2003
Last modified: 04/12/2002
Rating: - (fewer than 3 votes)
Views: 4816
This will convert Devnagiri(Hindi) ISCII string to Unicode(UTF8) encoded string.


language negotiation  

Type: code fragment
Added by: gollino
Entered: 17/07/2001
Last modified: 07/12/2000
Rating: ***** (4 votes)
Views: 6576
negotiates a common *language* between apache and a browser


Number into Indonesian Words  

Type: code fragment
Added by: cinoban
Entered: 27/04/2001
Last modified: 04/12/2000
Rating: - (fewer than 3 votes)
Views: 5334
This code will convert number into Indonesian words.


PULL DOWN MENU SPANISH FORMAT  

Type: code fragment
Added by: matusoft
Entered: 30/08/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 6097
DISPLAY THE SYSTEM DATE.


Spelled out currency amount in spanish  

Type: application
Added by: lecuanda
Entered: 06/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 6954
This will print a spelled out number in spanish. It can be easely modified for other languages that use special cases for numbering, such as german or french This code will generate a coherent written amount in spanish, given any number between 0 and 999,999,999 can be easely modified for any languaje, as it handles special cases and descriptors in spanish (tough languaje)


utf8Encode  

Type: code fragment
Added by: ronen
Entered: 07/03/2002
Last modified: 05/12/2002
Rating: - (fewer than 3 votes)
Views: 8113
UTF-8 encodes a string of Unicode entities . Each Unicode entitiy should has either the form &[#]nn..n; n={0..9} (# denotes decimal, otherwise Hex) which is the W3C style or %nn with n=[0..F] Hex value. The value of the entity corresponds to its Unicode charcode. The entity can be displayed by UTF-8 supporting browsers. ASCII will not be modified. Currently maps a 2^21bit space. The next version will be compliant with Unicode v3.x and cover a 2^31bit space (still, this should cover the existing 95,000~ Unicode entities).


utf8RawUrlDecode  

Type: code fragment
Added by: ronen
Entered: 07/03/2002
Last modified: 07/12/2001
Rating: - (fewer than 3 votes)
Views: 7856
RFC1738 compliant alternative to PHP's rawurldecode, which actually works with unicode entities (using utf-8 encoding). Also included is a fix to the javascript method escape(), which ensures RFC1738 compliant encoding of strings containing utf-8 and/or ascii.



Search



This Category All Categories