Req #53994 [Opn->Wfx]: utf8_decode for iso-8859-15
| From: | requinix@php.net | Date: | Wed, 19 Aug 2015 19:34:17 +0000 |
| Subject: | Req #53994 [Opn->Wfx]: utf8_decode for iso-8859-15 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195355@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=53994&edit=1
ID: 53994
Updated by: requinix@php.net
Reported by: markokarjalainen at kolumbus dot fi
Summary: utf8_decode for iso-8859-15
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: *Languages/Translation
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
> Maybe beter change this function is silently extend to iso-8859-15 charset, so
> that iso-8859-15 charset work in iso-8859-1 charsets.
That's not possible. The two charsets differ at 8 code points so there's no way to combine
them. And even if they could be, it would be crazy to have a string be in two encodings
simultaneously.
Previous Comments:
------------------------------------------------------------------------
[2015-08-19 18:45:16] markokarjalainen at kolumbus dot fi
While there is already function that handle diffirent charsets, this can be closed.
Maybe beter change this function is silently extend to iso-8859-15 charset, so that iso-8859-15
charset work in iso-8859-1 charsets. If i understooded, this was method in many software when
iso-8859-15 charset released.
------------------------------------------------------------------------
[2015-08-18 13:18:48] cmb@php.net
It's rather unlikely that utf8_decode() will be enhanced, because
there are already mb_convert_encoding() and iconv().
Can this request be closed?
------------------------------------------------------------------------
[2011-02-11 10:50:21] markokarjalainen at kolumbus dot fi
Description:
------------
Is it possible extend utf8_decode function with charset iso-8859-15(latin 9) version?
http://en.wikipedia.org/wiki/ISO/IEC_8859-15
Currently utf8_decode uses iso-8859-1
Main reason of need is we need â¬(EUR) char in conversions
It can be done second optional parameter.
string utf8_decode ( string $data [] [, string $out_charset])
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=53994&edit=1