#50297 [Fbk->Opn]: MessageFormatter::formatMessage don't support string with accent in it

From: Date: Fri, 27 Nov 2009 15:08:49 +0000
Subject: #50297 [Fbk->Opn]: MessageFormatter::formatMessage don't support string with accent in it
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-145122@lists.php.net to get a copy of this message
ID: 50297 User updated by: pby_fr at yahoo dot fr Reported By: pby_fr at yahoo dot fr -Status: Feedback +Status: Open Bug Type: I18N and L10N related Operating System: Windows Vista 64 PHP Version: 5.3.1 New Comment: formatMessage being a static method, it is not possible to use getErrorMessage! I tested with a full object code: $fmt = new MessageFormatter("fr_FR", "with accent à é"); $fmt isn't an object, but FALSE Whit $fmt = new MessageFormatter("fr_FR", "with accent a e"); $fmt is an object, and everything works fine. Anyway, I must switch back to PHP 5.2, therefore I will recode a very simple formatter instead of use this class. Previous Comments: ------------------------------------------------------------------------ [2009-11-26 10:08:22] jani@php.net Try this: http://www.php.net/manual/en/messageformatter.geterrormessage.php You might have something like wrong locale there or something.. ------------------------------------------------------------------------ [2009-11-25 20:37:49] pby_fr at yahoo dot fr Description: ------------ Using accent character in the pattern of MessageFormatter::formatMessage return an empty string. Reproduce code: --------------- echo (MessageFormatter::formatMessage("fr_FR", "with accent à é", array())); Expected result: ---------------- to display: with accent à é Actual result: -------------- display nothing ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50297&edit=1

« previous php.bugs (#145122) next »