6.0.0-alpha14
7/3/25

[#8780] number_format() doesn't work with multi-byte characters
Summary number_format() doesn't work with multi-byte characters
Queue Horde Base
Queue Version 3.3.5
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester e.cerny (at) seznam (dot) cz
Created 12/16/2009 (5678 days ago)
Due
Updated 12/17/2009 (5677 days ago)
Assigned 12/16/2009 (5678 days ago)
Resolved 12/16/2009 (5678 days ago)
Github Issue Link
Github Pull Request
Milestone 3.3.7
Patch No

History
12/17/2009 12:35:05 AM e (dot) cerny (at) seznam (dot) cz Comment #7 Reply to this comment
Great, than kyou.
12/16/2009 10:12:26 PM Jan Schneider Comment #6
Assigned to Jan Schneider
Milestone ⇒ 3.3.7
State ⇒ Resolved
Summary ⇒ number_format() doesn't work with multi-byte characters
Reply to this comment
It actually turned out that not localconv() was the culprit, it worked 
just as expected. But number_format() doesn't work with multi-byte 
characters.
12/16/2009 07:52:29 PM e (dot) cerny (at) seznam (dot) cz Comment #4 Reply to this comment
Maybe it should be configurable at admin or even user level. That 
would be great.
I presonaly hate , as a decimal_point which is default for my locale
12/16/2009 10:33:37 AM Jan Schneider Comment #3
State ⇒ Feedback
Reply to this comment
This sucks, because there is no way to find out which charset is 
actually being used. I would expect localeconv() to use the charset of 
the current locale, but that's obviously not the case. I don't see a 
clean solution at the moment. For Horde 4 we could use intl's 
NumberFormatter instead, hoping that it is locale-aware.
12/16/2009 05:42:16 AM e (dot) cerny (at) seznam (dot) cz Comment #2 Reply to this comment
in lib/Horde/NLS.php on line 452
should be something like
$lc_info = iconv($charset, 'utf-8', localeconv());
instead of
$lc_info = localeconv();
12/16/2009 05:21:21 AM e (dot) cerny (at) seznam (dot) cz Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ output from localeconv() must be converted from $nls['charsets']['xx_XX'] encoding to utf-8
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
output from localeconv() is in the default encoding for the choosed locale

localeconv() for cs_CZ outputs in ISO-8859-2 but is displayed in utf-8

In IMP::New Mail window down in Attachment section
(Maximum Attachment Size: 10?000?000 bytes)

Saved Queries