Summary | illegal utf-8 sequence when using Finnish language |
Queue | IMP |
Queue Version | 4.1 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | tpeland (at) tkukoulu (dot) fi |
Created | 04/08/2006 (7003 days ago) |
Due | |
Updated | 05/09/2006 (6972 days ago) |
Assigned | 04/09/2006 (7002 days ago) |
Resolved | 05/09/2006 (6972 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
this? Or do we have to accept that Finnish locales seem to be broken
in libc?
4.x installations are slowly fading so maybe we can ignore the
problem. This also suggest the problem isn't in libc but in php.
this? Or do we have to accept that Finnish locales seem to be broken
in libc?
locale fi_FI: 0xa0
locale fi_FI.UTF-8: 0xc2 0xa0
The character is non-breakable space.
<?php
setlocale(LC_ALL, 'fi_FI.UTF-8');
$localeinfo = localeconv();
var_dump($localeinfo['thousands_sep']);
and add header('text/plain; charset="utf-8"') if viewing in a browser.
<?php
setlocale(LC_ALL, 'fi_FI');
$localeinfo = localeconv();
var_dump($localeinfo['thousands_sep']);
Gives me:
string(1) " "
State ⇒ Feedback
wrong charset. I can reproduce it, but there is probably nothing we
can do about this, because we already explicitely request the
separator characters in the interface's charset.
I was not able to determine which charset the separator has in fact,
definitely not iso-8859-1.
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ illegal utf-8 sequence when using Finnish language
Queue ⇒ IMP
State ⇒ Unconfirmed
size. The English interface shows the size of the file correctly but
in Finnish interface the character between 1 and 024 is a non-utf-8
character.
English:
1. 1M (application/x-executable-file) Size: 1,024.00 KB [Preview]
Finnish (Suomi):
1. 1M (application/x-executable-file) Koko: 1Â024,00 KB [Esikatselu]
I think it is meant to be 1'024,00