php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #20685 UTF-8 encoding as ISO-8859-15
Submitted: 2002-11-27 15:41 UTC Modified: 2002-12-21 10:57 UTC
From: r dot everhardt at home dot nl Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.2.1 OS: Windows XP
Private report: No CVE-ID: None
 [2002-11-27 15:41 UTC] r dot everhardt at home dot nl
How can I UTF-8 encode the euro symbol?

New symbols like the Euro are not correctly encoded by the current utf8_encode function. ISO has issued a new standard: ISO-8859-15, which is mostly like ISO-8859-1 except that it removes some rarely used characters (the old currency sign) and replaced it with the Euro sign.
The feature request: a function to utf-8 encode a string, that also encodes the euro symbol correctly.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-21 10:57 UTC] moriyoshi@php.net
You can accomplish it with iconv() or mb_convert_encoding().

See
http://www.php.net/iconv
http://www.php.net/mb_convert_encoding

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC