ID:               50297
 Updated by:       j...@php.net
 Reported By:      pby_fr at yahoo dot fr
-Status:           Open
+Status:           Bogus
 Bug Type:         I18N and L10N related
 Operating System: Windows Vista 64
 PHP Version:      5.3.1
 New Comment:

Well there's your problem. The method isn't static..


Previous Comments:
------------------------------------------------------------------------

[2009-11-27 15:08:49] pby_fr at yahoo dot fr

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.

------------------------------------------------------------------------

[2009-11-26 10:08:22] j...@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

Reply via email to