<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-164</id>
	<title>Nabble - Php - Internationalization (i18n)</title>
	<updated>2009-12-23T03:49:30Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Php---Internationalization-(i18n)-f164.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Php---Internationalization-%28i18n%29-f164.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26901065</id>
	<title>Re: Problems passing variables to gettext</title>
	<published>2009-12-23T03:49:30Z</published>
	<updated>2009-12-23T03:49:30Z</updated>
	<author>
		<name>Hans-Peter Oeri</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Lumiere de Lune wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; $sitetitle= _('My beautiful site') ; in variables.php
&lt;br&gt;&amp;gt; And echo $sitetitle in the second file, which is my template. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As it did not work, I imagined the translation of the variable did not work
&lt;br&gt;&lt;br&gt;You mean the translation of the constant expression, whose result gets
&lt;br&gt;assigned to a variable? There is no reason why the translation should
&lt;br&gt;fail because of a (later) assignment of its result.
&lt;br&gt;&lt;br&gt;&amp;gt; But the other strings are in other files, so this is the only case where I
&lt;br&gt;&amp;gt; define a variable that has to be translated.
&lt;br&gt;&lt;br&gt;Other files? Are you sure locale setting/domain/path are set for *this*
&lt;br&gt;file, too?
&lt;br&gt;&lt;br&gt;Might $sitetitle be re-set after the translation assignment?
&lt;br&gt;&lt;br&gt;If not: Would it be possible to boil down a test case?
&lt;br&gt;&lt;br&gt;HPO
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-passing-variables-to-gettext-tp26897598p26901065.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26900890</id>
	<title>RE: Problems passing variables to gettext</title>
	<published>2009-12-23T03:30:09Z</published>
	<updated>2009-12-23T03:30:09Z</updated>
	<author>
		<name>Marie-Aude</name>
	</author>
	<content type="html">Hello :)
&lt;br&gt;&lt;br&gt;HPO wrote
&lt;br&gt;&lt;br&gt;&amp;gt; Marie-Aude wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; $sitetitle= _('My beautiful site') ; 
&lt;br&gt;&amp;gt;[...]
&lt;br&gt;&amp;gt;&amp;gt; the echo _($sitetitle) does not work. 
&lt;br&gt;&lt;br&gt;&amp;gt;Are you actually trying to translate your site's title twice?
&lt;br&gt;&lt;br&gt;&amp;gt;If not, gettext problems usually arise from not/wrongly setting the
&lt;br&gt;&amp;gt;domain and the path gettext is expecting. If you have a look at the
&lt;br&gt;&amp;gt;php manual for the gettext function, there is a complete example.
&lt;br&gt;&lt;br&gt;Actually no :) though it looks like. 
&lt;br&gt;At first I had 
&lt;br&gt;$sitetitle= _('My beautiful site') ; in variables.php
&lt;br&gt;And echo $sitetitle in the second file, which is my template. 
&lt;br&gt;&lt;br&gt;As it did not work, I imagined the translation of the variable did not work
&lt;br&gt;as non translated value was shown, and I tried to re-translate it. 
&lt;br&gt;I tried both configurations (you know when you are despaired because you
&lt;br&gt;can't grab why it does not work.
&lt;br&gt;It is definitively not a path or configuration problem, because all other
&lt;br&gt;strings are correctly translated. 
&lt;br&gt;But the other strings are in other files, so this is the only case where I
&lt;br&gt;define a variable that has to be translated.
&lt;br&gt;--
&lt;br&gt;Marie-Aude
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-passing-variables-to-gettext-tp26897598p26900890.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26900557</id>
	<title>Re: Problems passing variables to gettext</title>
	<published>2009-12-23T02:50:31Z</published>
	<updated>2009-12-23T02:50:31Z</updated>
	<author>
		<name>Hans-Peter Oeri</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Marie-Aude wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; $sitetitle= _('My beautiful site') ; 
&lt;br&gt;[...]
&lt;br&gt;&amp;gt; the echo _($sitetitle) does not work. 
&lt;br&gt;&lt;br&gt;Are you actually trying to translate your site's title twice?
&lt;br&gt;&lt;br&gt;If not, gettext problems usually arise from not/wrongly setting the
&lt;br&gt;domain and the path gettext is expecting. If you have a look at the
&lt;br&gt;php manual for the gettext function, there is a complete example.
&lt;br&gt;&lt;br&gt;Greets
&lt;br&gt;HPO
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-passing-variables-to-gettext-tp26897598p26900557.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26897598</id>
	<title>Problems passing variables to gettext</title>
	<published>2009-12-22T19:48:26Z</published>
	<updated>2009-12-22T19:48:26Z</updated>
	<author>
		<name>Marie-Aude</name>
	</author>
	<content type="html">Hello, I have a problem using gettext in php that I can't solve, I've been through the different posts, and can't get it. 
&lt;br&gt;&lt;br&gt;I have a file of string variables for a site, like address, phone, etc, of which one of them has to be translated. 
&lt;br&gt;So I put in the variables.php file
&lt;br&gt;$sitetitle= _('My beautiful site') ; 
&lt;br&gt;&lt;br&gt;Translated it in the po files (through PO edit)
&lt;br&gt;&lt;br&gt;Now in my index page, I set the locales, and call my variables. 
&lt;br&gt;And I can't get $sitetitle to be translated, it still stays in the original language (which means the variable is recognized, but not translated)
&lt;br&gt;&lt;br&gt;the echo _($sitetitle) does not work. 
&lt;br&gt;&lt;br&gt;Any idea ? </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-passing-variables-to-gettext-tp26897598p26897598.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896020</id>
	<title>intl / resourcebundle: Invitation to comment</title>
	<published>2009-12-22T15:42:23Z</published>
	<updated>2009-12-22T15:42:23Z</updated>
	<author>
		<name>Hans-Peter Oeri</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;After helpful feedback from Stanislav I tried to implement libicu's
&lt;br&gt;ResourceBundle - meaning a class/functions to read them.
&lt;br&gt;&lt;br&gt;You can find current developments incl. a diff to intl 1.0.3 at
&lt;br&gt;&lt;a href=&quot;https://saintcyr.oeri.ch/trac/php-intl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://saintcyr.oeri.ch/trac/php-intl&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please dont hesitate to comment or suggest improvements
&lt;br&gt;HPO
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/intl---resourcebundle%3A-Invitation-to-comment-tp26896020p26896020.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26887529</id>
	<title>Re: intl 1.0.3: Trying to understand the internal error functions</title>
	<published>2009-12-21T13:07:09Z</published>
	<updated>2009-12-21T13:07:09Z</updated>
	<author>
		<name>Stanislav Malyshev</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In order to &amp;quot;synchronize&amp;quot; global and individual errors, there are three
&lt;br&gt;&amp;gt; functions (plural of error):
&lt;br&gt;&amp;gt; intl_errors_reset
&lt;br&gt;&amp;gt; intl_errors_set_custom_msg
&lt;br&gt;&amp;gt; intl_errors_set_code
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, the first and the third are NEVER referenced. The second is
&lt;br&gt;&amp;gt; only used in connection with intl_error_set_code (note singular error!)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; All this seems not to add up. Are there any docs available somewhere?
&lt;/div&gt;&lt;br&gt;OK, so there is two places where errors are kept - global error state 
&lt;br&gt;and local error state for each object. When error happens, if we have an 
&lt;br&gt;object we set both objects' state and global state, when we don't have 
&lt;br&gt;object, only global state. Plural functions set both object's state and 
&lt;br&gt;global state. Singular functions set only one state, specified by err, 
&lt;br&gt;which is global if err is NULL.
&lt;br&gt;-- 
&lt;br&gt;Stanislav Malyshev, Zend Software Architect
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26887529&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stas@...&lt;/a&gt; &amp;nbsp; &lt;a href=&quot;http://www.zend.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zend.com/&lt;/a&gt;&lt;br&gt;(408)253-8829 &amp;nbsp; MSN: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26887529&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stas@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/intl-1.0.3%3A-Trying-to-understand-the-internal-error-functions-tp26866462p26887529.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26887745</id>
	<title>Re: PATCH intl 1.0.3 normalizer: intl_error_reset gets called twice</title>
	<published>2009-12-21T12:13:45Z</published>
	<updated>2009-12-21T12:13:45Z</updated>
	<author>
		<name>Stanislav Malyshev</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;&amp;gt; Going through intl/normalizer I found that intl_error_reset gets called
&lt;br&gt;&amp;gt; twice - once in a macro, once explicitely.
&lt;br&gt;&lt;br&gt;You are right, committed the fix.
&lt;br&gt;-- 
&lt;br&gt;Stanislav Malyshev, Zend Software Architect
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26887745&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stas@...&lt;/a&gt; &amp;nbsp; &lt;a href=&quot;http://www.zend.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zend.com/&lt;/a&gt;&lt;br&gt;(408)253-8829 &amp;nbsp; MSN: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26887745&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stas@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PATCH-intl-1.0.3-normalizer%3A-intl_error_reset-gets-called-twice-tp26866104p26887745.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26866462</id>
	<title>intl 1.0.3: Trying to understand the internal error functions</title>
	<published>2009-12-20T11:21:49Z</published>
	<updated>2009-12-20T11:21:49Z</updated>
	<author>
		<name>Hans-Peter Oeri</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;intl_error.h defines common error handling functions and &amp;quot;global&amp;quot;
&lt;br&gt;variables - in addition to those in the respective objects.
&lt;br&gt;&lt;br&gt;In order to &amp;quot;synchronize&amp;quot; global and individual errors, there are three
&lt;br&gt;functions (plural of error):
&lt;br&gt;intl_errors_reset
&lt;br&gt;intl_errors_set_custom_msg
&lt;br&gt;intl_errors_set_code
&lt;br&gt;&lt;br&gt;However, the first and the third are NEVER referenced. The second is
&lt;br&gt;only used in connection with intl_error_set_code (note singular error!)
&lt;br&gt;&lt;br&gt;All this seems not to add up. Are there any docs available somewhere?
&lt;br&gt;&lt;br&gt;HPO
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/intl-1.0.3%3A-Trying-to-understand-the-internal-error-functions-tp26866462p26866462.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26866104</id>
	<title>PATCH intl 1.0.3 normalizer: intl_error_reset gets called twice</title>
	<published>2009-12-20T10:46:27Z</published>
	<updated>2009-12-20T10:46:27Z</updated>
	<author>
		<name>Hans-Peter Oeri</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Going through intl/normalizer I found that intl_error_reset gets called
&lt;br&gt;twice - once in a macro, once explicitely.
&lt;br&gt;&lt;br&gt;HPO
&lt;br&gt;&lt;br /&gt;diff -r ddff919cd2c0 normalizer/normalizer_class.h
&lt;br&gt;--- a/normalizer/normalizer_class.h	Sun Dec 20 16:12:59 2009 +0100
&lt;br&gt;+++ b/normalizer/normalizer_class.h	Sun Dec 20 19:42:54 2009 +0100
&lt;br&gt;@@ -44,9 +44,4 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;extern zend_class_entry *Normalizer_ce_ptr;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-/* Auxiliary macros */
&lt;br&gt;-
&lt;br&gt;-#define NORMALIZER_METHOD_INIT_VARS &amp;nbsp; &amp;nbsp; \
&lt;br&gt;- &amp;nbsp; &amp;nbsp;intl_error_reset( NULL TSRMLS_CC ); \
&lt;br&gt;-
&lt;br&gt;&amp;nbsp;#endif // #ifndef NORMALIZER_CLASS_H
&lt;br&gt;diff -r ddff919cd2c0 normalizer/normalizer_normalize.c
&lt;br&gt;--- a/normalizer/normalizer_normalize.c	Sun Dec 20 16:12:59 2009 +0100
&lt;br&gt;+++ b/normalizer/normalizer_normalize.c	Sun Dec 20 19:42:54 2009 +0100
&lt;br&gt;@@ -49,8 +49,6 @@
&lt;br&gt;&amp;nbsp;	int32_t			ret_len = 0;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	int32_t			size_needed;
&lt;br&gt;-		
&lt;br&gt;-	NORMALIZER_METHOD_INIT_VARS
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	intl_error_reset( NULL TSRMLS_CC );
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -180,8 +178,6 @@
&lt;br&gt;&amp;nbsp;	UErrorCode	status = U_ZERO_ERROR;
&lt;br&gt;&amp;nbsp;		
&lt;br&gt;&amp;nbsp;	UBool		uret = FALSE;
&lt;br&gt;-		
&lt;br&gt;-	NORMALIZER_METHOD_INIT_VARS
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	intl_error_reset( NULL TSRMLS_CC );
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br /&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PATCH-intl-1.0.3-normalizer%3A-intl_error_reset-gets-called-twice-tp26866104p26866104.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25986894</id>
	<title>Новорязанское ш. лесные участки</title>
	<published>2009-10-20T23:00:47Z</published>
	<updated>2009-10-20T23:00:47Z</updated>
	<author>
		<name>&quot;Участки в новом коттеджном поселке&quot;</name>
	</author>
	<content type="html">Участки в новом коттеджном поселке 30 км от МКАД по Новорязанскому ш.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Участки по 12 соток, заросшие березками по 8-12 м на опушке большого леса (Бронницкое охотхозяйство). Электричество подведено, газ проходит в 50 м от поселка (будет разведен сразу после сдачи в эксплуатацию 3-4 коттеджей). Предварительная оценка стоимости газа - 300 000 руб на участок.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Стоимость участка с 9 квт электроэнергии - 1 950 000 руб
&lt;br&gt;&lt;br&gt;&amp;nbsp; Тел: &amp;nbsp;974 - 17 - 96
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%D0%9D%D0%BE%D0%B2%D0%BE%D1%80%D1%8F%D0%B7%D0%B0%D0%BD%D1%81%D0%BA%D0%BE%D0%B5-%D1%88.-%D0%BB%D0%B5%D1%81%D0%BD%D1%8B%D0%B5-%D1%83%D1%87%D0%B0%D1%81%D1%82%D0%BA%D0%B8-tp25986894p25986894.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25896893</id>
	<title>Re: International characters look OK in PHP app, not in MySQL GUI</title>
	<published>2009-10-14T11:54:11Z</published>
	<updated>2009-10-14T11:54:11Z</updated>
	<author>
		<name>Michael R Boudreau</name>
	</author>
	<content type="html">Thanks for this, Darren.
&lt;br&gt;&lt;br&gt;It turns out that, although I had already explicitly set the character set and collation for the table I was updating/viewing, that wasn't enough.
&lt;br&gt;&lt;br&gt;I reset the MySQL server variables to use utf8 for the default character set, then dropped and recreated the database, explicitly setting the character set and collation. Then I reloaded the data. (Fortunately it wasn't a large database.)
&lt;br&gt;&lt;br&gt;That proved enough for the Mac OS X development environment. On a Solaris server, I had to go one step further: explicitly set the connection character set (using &amp;quot;SET NAMES 'utf8'&amp;quot;) immediately after establishing the mysqli connection. Now all is well.
&lt;br&gt;&lt;br&gt;I'm a bit curious why the connection character set apparently defaulted to utf8 on the Mac but not on Solaris. Perhaps the former is more utf8-friendly (or utf8-centric)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 10/12/09 6:37 PM, &amp;quot;Darren Cook&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25896893&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;darren@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; The problem in the PHP app is that they don't sort in the correct order. For
&lt;br&gt;&amp;gt; ex., capital E with any accent sorts between A and B.
&lt;br&gt;&lt;br&gt;That's a curious symptom. I've no suggestion, but the other information
&lt;br&gt;you didn't give was:
&lt;br&gt;&lt;br&gt;&amp;nbsp;a) do you have the mbstring extension installed (and if so, what is the
&lt;br&gt;internal_encoding, and the other settings)?
&lt;br&gt;&lt;br&gt;&amp;nbsp;b) do you have the intl extension installed (and, again, what settings)?
&lt;br&gt;&lt;br&gt;&amp;nbsp;c) what is the server's locale setting?
&lt;br&gt;&lt;br&gt;The first two you can get from a phpinfo() page. For the 3rd I think
&lt;br&gt;$_ENV[&amp;quot;LANG&amp;quot;] is it, or this should confirm it:
&lt;br&gt;&amp;nbsp; print_r(setlocale(LC_ALL,&amp;quot;0&amp;quot;));
&lt;br&gt;&lt;br&gt;Also take a look at &amp;nbsp;&lt;a href=&quot;http://jp.php.net/setlocale&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jp.php.net/setlocale&lt;/a&gt;&amp;nbsp; and try setting
&lt;br&gt;&amp;quot;en_US.UTF8&amp;quot; explicitly at the top of your script. The comments say Mac
&lt;br&gt;requires &amp;quot;UTF-8&amp;quot;, so you might also want to try:
&lt;br&gt;&amp;nbsp; &amp;nbsp;setlocale(LC_ALL,Array(&amp;quot;en_US.UTF8&amp;quot;,&amp;quot;en_US.UTF-8&amp;quot;));
&lt;br&gt;&lt;br&gt;(untested)
&lt;br&gt;&lt;br&gt;Darren
&lt;br&gt;&lt;br&gt;P.S. On the MySQL side have a look at the collation setting of the database.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Darren Cook, Software Researcher/Developer
&lt;br&gt;&lt;a href=&quot;http://dcook.org/gobet/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/gobet/&lt;/a&gt;&amp;nbsp; (Shodan Go Bet - who will win?)
&lt;br&gt;&lt;a href=&quot;http://dcook.org/mlsn/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/mlsn/&lt;/a&gt;&amp;nbsp;(Multilingual open source semantic network)
&lt;br&gt;&lt;a href=&quot;http://dcook.org/work/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/work/&lt;/a&gt;&amp;nbsp;(About me and my work)
&lt;br&gt;&lt;a href=&quot;http://dcook.org/blogs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/blogs.html&lt;/a&gt;&amp;nbsp;(My blogs and articles)
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Michael R. Boudreau
&lt;br&gt;Senior Publishing Technology Analyst
&lt;br&gt;The University of Chicago Press
&lt;br&gt;1427 E. 60th Street
&lt;br&gt;Chicago, IL 60637
&lt;br&gt;(773) 753-3298 &amp;nbsp;fax: (773) 753-3383
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/International-characters-look-OK-in-PHP-app%2C-not-in-MySQL-GUI-tp25859081p25896893.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25864976</id>
	<title>Re: International characters look OK in PHP app, not in MySQL GUI</title>
	<published>2009-10-12T16:37:59Z</published>
	<updated>2009-10-12T16:37:59Z</updated>
	<author>
		<name>Darren Cook</name>
	</author>
	<content type="html">&amp;gt; The problem in the PHP app is that they don't sort in the correct order. For
&lt;br&gt;&amp;gt; ex., capital E with any accent sorts between A and B.
&lt;br&gt;&lt;br&gt;That's a curious symptom. I've no suggestion, but the other information
&lt;br&gt;you didn't give was:
&lt;br&gt;&lt;br&gt;&amp;nbsp;a) do you have the mbstring extension installed (and if so, what is the
&lt;br&gt;internal_encoding, and the other settings)?
&lt;br&gt;&lt;br&gt;&amp;nbsp;b) do you have the intl extension installed (and, again, what settings)?
&lt;br&gt;&lt;br&gt;&amp;nbsp;c) what is the server's locale setting?
&lt;br&gt;&lt;br&gt;The first two you can get from a phpinfo() page. For the 3rd I think
&lt;br&gt;$_ENV[&amp;quot;LANG&amp;quot;] is it, or this should confirm it:
&lt;br&gt;&amp;nbsp; print_r(setlocale(LC_ALL,&amp;quot;0&amp;quot;));
&lt;br&gt;&lt;br&gt;Also take a look at &amp;nbsp;&lt;a href=&quot;http://jp.php.net/setlocale&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jp.php.net/setlocale&lt;/a&gt;&amp;nbsp; and try setting
&lt;br&gt;&amp;quot;en_US.UTF8&amp;quot; explicitly at the top of your script. The comments say Mac
&lt;br&gt;requires &amp;quot;UTF-8&amp;quot;, so you might also want to try:
&lt;br&gt;&amp;nbsp; &amp;nbsp;setlocale(LC_ALL,Array(&amp;quot;en_US.UTF8&amp;quot;,&amp;quot;en_US.UTF-8&amp;quot;));
&lt;br&gt;&lt;br&gt;(untested)
&lt;br&gt;&lt;br&gt;Darren
&lt;br&gt;&lt;br&gt;P.S. On the MySQL side have a look at the collation setting of the database.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Darren Cook, Software Researcher/Developer
&lt;br&gt;&lt;a href=&quot;http://dcook.org/gobet/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/gobet/&lt;/a&gt;&amp;nbsp; (Shodan Go Bet - who will win?)
&lt;br&gt;&lt;a href=&quot;http://dcook.org/mlsn/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/mlsn/&lt;/a&gt;&amp;nbsp;(Multilingual open source semantic network)
&lt;br&gt;&lt;a href=&quot;http://dcook.org/work/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/work/&lt;/a&gt;&amp;nbsp;(About me and my work)
&lt;br&gt;&lt;a href=&quot;http://dcook.org/blogs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/blogs.html&lt;/a&gt;&amp;nbsp;(My blogs and articles)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/International-characters-look-OK-in-PHP-app%2C-not-in-MySQL-GUI-tp25859081p25864976.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25859081</id>
	<title>International characters look OK in PHP app, not in MySQL GUI</title>
	<published>2009-10-12T09:41:07Z</published>
	<updated>2009-10-12T09:41:07Z</updated>
	<author>
		<name>Michael R Boudreau</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I have a problem with inconsistent display of international characters
&lt;br&gt;between my PHP application and several MySQL GUI applications: the
&lt;br&gt;characters look OK but sort incorrectly in the PHP app, and they look
&lt;br&gt;scrambled in the MySQL GUI.
&lt;br&gt;&lt;br&gt;I'm developing a database of book and publisher information on Mac OS X
&lt;br&gt;(10.6.1) with PHP 5.3 and MySQL 5.1.39.
&lt;br&gt;&lt;br&gt;The people using the application need to be able to enter book titles and
&lt;br&gt;publisher names, among other things, in French, German, and other European
&lt;br&gt;languages.
&lt;br&gt;&lt;br&gt;My PHP pages all include
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;meta http-equiv=&amp;quot;content-type&amp;quot; content=&amp;quot;text/html; charset=UTF-8&amp;quot; /&amp;gt;
&lt;br&gt;&lt;br&gt;and the MySQL table holding the data uses UTF-8 as its default character
&lt;br&gt;set.
&lt;br&gt;&lt;br&gt;When accented letters are entered using the Mac OS X &amp;quot;Special Characters&amp;quot;
&lt;br&gt;palette or the Windows &amp;quot;Character Map&amp;quot; utility, or even copied and pasted
&lt;br&gt;from a Word document, they go into the PHP app and are displayed back
&lt;br&gt;correctly.
&lt;br&gt;&lt;br&gt;The problem in the PHP app is that they don't sort in the correct order. For
&lt;br&gt;ex., capital E with any accent sorts between A and B.
&lt;br&gt;&lt;br&gt;When I use any GUI to view the MySQL database itself (such as CocoaMySQL or
&lt;br&gt;Sequel Pro or MySQL Query Browser), the accented letters are represented by
&lt;br&gt;_two_ completely different accented letters. (However, oddly, if I query the
&lt;br&gt;database from the command-line 'mysql' utility in Mac OS X Terminal, the
&lt;br&gt;letters look correct.)
&lt;br&gt;&lt;br&gt;Further, when I use the same system utilities (OS X Special Characters
&lt;br&gt;palette or Windows Character Map) to edit values directly in the MySQL GUI,
&lt;br&gt;they appear correct in the GUI but break my PHP app (I get an error message
&lt;br&gt;from htmlspecialchars() about an illegal multibyte value).
&lt;br&gt;&lt;br&gt;I'd be grateful for any advice you can give.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael R. Boudreau
&lt;br&gt;Senior Publishing Technology Analyst
&lt;br&gt;The University of Chicago Press
&lt;br&gt;1427 E. 60th Street
&lt;br&gt;Chicago, IL 60637
&lt;br&gt;(773) 753-3298 &amp;nbsp;fax: (773) 753-3383
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/International-characters-look-OK-in-PHP-app%2C-not-in-MySQL-GUI-tp25859081p25859081.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25845268</id>
	<title>RE: PHP support of Unicode?</title>
	<published>2009-10-11T09:55:10Z</published>
	<updated>2009-10-11T09:55:10Z</updated>
	<author>
		<name>Andi Gutmans</name>
	</author>
	<content type="html">You may also want to check out &lt;a href=&quot;http://pecl.php.net/package/intl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pecl.php.net/package/intl&lt;/a&gt;&lt;br&gt;Works with PHP 5.2 and PHP 5.3 and delivers a lot of functionality
&lt;br&gt;(assumes it receives UTF-8).
&lt;br&gt;There's also an intro article on Zend's devzone about it
&lt;br&gt;&lt;a href=&quot;http://devzone.zend.com/article/4799-Internationalization-in-PHP-5.3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://devzone.zend.com/article/4799-Internationalization-in-PHP-5.3&lt;/a&gt;&lt;br&gt;&lt;br&gt;Andi
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP-support-of-Unicode--tp25730542p25845268.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25797499</id>
	<title>Re: PHP support of Unicode?</title>
	<published>2009-10-07T19:32:57Z</published>
	<updated>2009-10-07T19:32:57Z</updated>
	<author>
		<name>Darren Cook</name>
	</author>
	<content type="html">&amp;gt; encoding. But using PHP with other languages, is that possible? I
&lt;br&gt;&amp;gt; mean, does PHP support Unicode at present time?
&lt;br&gt;&lt;br&gt;Yes, PHP is an excellent choice for unicode work, both for websites and
&lt;br&gt;commandline utilities.
&lt;br&gt;&lt;br&gt;&amp;gt; As I understand it, the following statement is true: &amp;quot;PHP supports
&lt;br&gt;&amp;gt; Unicode only as long as it is encoded as UTF-8&amp;quot;
&lt;br&gt;&lt;br&gt;UTF-8 is usually what you want. Browser and tool and editor support is
&lt;br&gt;most widespread for UTF-8 (especially on linux).
&lt;br&gt;&lt;br&gt;Even using a Microsoft SQL Server database, which I believe was using
&lt;br&gt;UCS-2LE internally, I give it the data in UTF-8, and the database
&lt;br&gt;connection handles the conversion behind the scenes for me.
&lt;br&gt;&lt;br&gt;Be aware if you go down the UTF-16 route you have to start caring about
&lt;br&gt;LE vs. BE, and also need to understand the difference between UTF-16 and
&lt;br&gt;UCS-2.
&lt;br&gt;&lt;br&gt;&amp;gt; Is that correct, or does PHP also support UTF-16?
&lt;br&gt;&lt;br&gt;If using the mbstring extension then UTF-16 is supported (including for
&lt;br&gt;regexes apparently):
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://jp.php.net/manual/en/mbstring.supported-encodings.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jp.php.net/manual/en/mbstring.supported-encodings.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;mbstring has been on all shared hosts I've used, so it is usually fine
&lt;br&gt;to rely on it.
&lt;br&gt;&lt;br&gt;Darren
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Darren Cook, Software Researcher/Developer
&lt;br&gt;&lt;a href=&quot;http://dcook.org/gobet/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/gobet/&lt;/a&gt;&amp;nbsp; (Shodan Go Bet - who will win?)
&lt;br&gt;&lt;a href=&quot;http://dcook.org/mlsn/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/mlsn/&lt;/a&gt;&amp;nbsp;(Multilingual open source semantic network)
&lt;br&gt;&lt;a href=&quot;http://dcook.org/work/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/work/&lt;/a&gt;&amp;nbsp;(About me and my work)
&lt;br&gt;&lt;a href=&quot;http://dcook.org/blogs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dcook.org/blogs.html&lt;/a&gt;&amp;nbsp;(My blogs and articles)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP-support-of-Unicode--tp25730542p25797499.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25745454</id>
	<title>Re: iconv - bad encoding</title>
	<published>2009-10-04T22:49:47Z</published>
	<updated>2009-10-04T22:49:47Z</updated>
	<author>
		<name>Jarosek J.</name>
	</author>
	<content type="html">2009/10/5 Moriyoshi Koizumi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25745454&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mozo@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Are you sure that $text was really encoded in UTF-8 when the output
&lt;br&gt;&amp;gt; was garbled? try dumping bin2hex($text) to see if there's any
&lt;br&gt;&amp;gt; difference.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Moriyoshi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/10/2 Jarosek &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25745454&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jarosek1@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; &amp;gt; Hello
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I noticed a problem using iconv, but investigation showed, that this is
&lt;br&gt;&amp;gt; &amp;gt; not exectly the iconv itself, but something like php encoding.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; From the beginning:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; a hava an incoming variable $text;
&lt;br&gt;&amp;gt; &amp;gt; it has some Polish diactics 'strona główna'.
&lt;br&gt;&amp;gt; &amp;gt; I expect to remove diactics : 'strona glowna'.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; So I use iconv: iconv('utf-8', 'us-ascii//TRANSLIT', $text)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; and unfortunetly i get: 'strona g??wna' ... But only under apache, in
&lt;br&gt;&amp;gt; &amp;gt; browser
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The same file, command, etc run from bash gives: 'strona glowna' ... OK
&lt;br&gt;&amp;gt; &amp;gt; So i think : &amp;quot;bad config&amp;quot;, but double checked and configs are
&lt;br&gt;&amp;gt; &amp;gt; identical... (cli and apache2)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Best part: for 2 or 3 times after starting computer (debian), it didn't
&lt;br&gt;&amp;gt; &amp;gt; worker until I did: (apache start &amp;&amp; apache stop - not apache restart),
&lt;br&gt;&amp;gt; &amp;gt; then it worked. Now it doesn't work any more. No other config (except
&lt;br&gt;&amp;gt; &amp;gt; php was changed).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Any ideas?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Thank's for the replay. I needed to set locale to pl_PL.UTF-8 . Strange
&lt;br&gt;think is that it worked without it under the cli... with the same
&lt;br&gt;configuration. Well... it works now.
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;JJ
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/iconv---bad-encoding-tp25710904p25745454.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25743962</id>
	<title>Re: iconv - bad encoding</title>
	<published>2009-10-04T18:30:32Z</published>
	<updated>2009-10-04T18:30:32Z</updated>
	<author>
		<name>Moriyoshi Koizumi-3</name>
	</author>
	<content type="html">Are you sure that $text was really encoded in UTF-8 when the output
&lt;br&gt;was garbled? try dumping bin2hex($text) to see if there's any
&lt;br&gt;difference.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Moriyoshi
&lt;br&gt;&lt;br&gt;2009/10/2 Jarosek &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25743962&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jarosek1@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I noticed a problem using iconv, but investigation showed, that this is
&lt;br&gt;&amp;gt; not exectly the iconv itself, but something like php encoding.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From the beginning:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; a hava an incoming variable $text;
&lt;br&gt;&amp;gt; it has some Polish diactics 'strona główna'.
&lt;br&gt;&amp;gt; I expect to remove diactics : 'strona glowna'.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So I use iconv: iconv('utf-8', 'us-ascii//TRANSLIT', $text)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and unfortunetly i get: 'strona g??wna' ... But only under apache, in
&lt;br&gt;&amp;gt; browser
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The same file, command, etc run from bash gives: 'strona glowna' ... OK
&lt;br&gt;&amp;gt; So i think : &amp;quot;bad config&amp;quot;, but double checked and configs are
&lt;br&gt;&amp;gt; identical... (cli and apache2)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best part: for 2 or 3 times after starting computer (debian), it didn't
&lt;br&gt;&amp;gt; worker until I did: (apache start &amp;&amp; apache stop - not apache restart),
&lt;br&gt;&amp;gt; then it worked. Now it doesn't work any more. No other config (except
&lt;br&gt;&amp;gt; php was changed).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any ideas?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/iconv---bad-encoding-tp25710904p25743962.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25734656</id>
	<title>RE: PHP support of Unicode?</title>
	<published>2009-10-03T19:28:21Z</published>
	<updated>2009-10-03T19:28:21Z</updated>
	<author>
		<name>tex-4</name>
	</author>
	<content type="html">Rasmus, Gunnar,
&lt;br&gt;&lt;br&gt;When Rasmus says &amp;quot;manipulate&amp;quot;, it means to me &amp;quot;modify&amp;quot;. Perhaps that is not
&lt;br&gt;Rasmus' meaning.
&lt;br&gt;&lt;br&gt;However, you may need to be aware of the encoding if you are testing,
&lt;br&gt;comparing, searching values, etc. as well.
&lt;br&gt;For example a case-insensitive search would need to be aware of the encoding
&lt;br&gt;to use the right values for upper and lower case.
&lt;br&gt;&lt;br&gt;More generally you should be aware of the encoding, label it properly, and
&lt;br&gt;potentially convert encodings appropriately to/from processes or I/O that
&lt;br&gt;may require another encoding.
&lt;br&gt;&lt;br&gt;My answer to Gunnar's question is that UTF-8 is a perfectly valid form of
&lt;br&gt;Unicode (UTF-16, UTF-32 being others) and you don't need to favor utf-16.
&lt;br&gt;PHP 5.3 has more functions for internationalization that are utf-8 and
&lt;br&gt;locale based. You might look into those.
&lt;br&gt;&lt;br&gt;tex
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Rasmus Lerdorf [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25734656&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rasmus@...&lt;/a&gt;] 
&lt;br&gt;Sent: Saturday, October 03, 2009 9:59 AM
&lt;br&gt;To: Gunnar Vestergaard
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25734656&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;php-i18n@...&lt;/a&gt;
&lt;br&gt;Subject: Re: [PHP-I18N] PHP support of Unicode?
&lt;br&gt;&lt;br&gt;Gunnar Vestergaard wrote:
&lt;br&gt;&amp;gt; When using PHP, writing content in my local language and my neighbouring
&lt;br&gt;&amp;gt; contries' language, ISO 8859-1 has been sufficient as a character
&lt;br&gt;&amp;gt; encoding. But using PHP with other languages, is that possible? I mean,
&lt;br&gt;&amp;gt; does PHP support Unicode at present time? As I understand it, the
&lt;br&gt;&amp;gt; following statement is true:
&lt;br&gt;&amp;gt; &amp;quot;PHP supports Unicode only as long as it is encoded as UTF-8&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is that correct, or does PHP also support UTF-16?
&lt;br&gt;&lt;br&gt;It depends what you are doing. &amp;nbsp;PCRE, our regex library, only speaks
&lt;br&gt;UTF-8 and there are functions like json_encode() that assume utf-8 as
&lt;br&gt;well. &amp;nbsp;If you are just doing pass-through stuff, you can use whatever
&lt;br&gt;you want. &amp;nbsp;It is only if you want to manipulate the text in some manner
&lt;br&gt;that you need to worry about the encoding.
&lt;br&gt;&lt;br&gt;-Rasmus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP-support-of-Unicode--tp25730542p25734656.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25730668</id>
	<title>Re: PHP support of Unicode?</title>
	<published>2009-10-03T09:58:36Z</published>
	<updated>2009-10-03T09:58:36Z</updated>
	<author>
		<name>Rasmus Lerdorf</name>
	</author>
	<content type="html">Gunnar Vestergaard wrote:
&lt;br&gt;&amp;gt; When using PHP, writing content in my local language and my neighbouring
&lt;br&gt;&amp;gt; contries' language, ISO 8859-1 has been sufficient as a character
&lt;br&gt;&amp;gt; encoding. But using PHP with other languages, is that possible? I mean,
&lt;br&gt;&amp;gt; does PHP support Unicode at present time? As I understand it, the
&lt;br&gt;&amp;gt; following statement is true:
&lt;br&gt;&amp;gt; &amp;quot;PHP supports Unicode only as long as it is encoded as UTF-8&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is that correct, or does PHP also support UTF-16?
&lt;br&gt;&lt;br&gt;It depends what you are doing. &amp;nbsp;PCRE, our regex library, only speaks
&lt;br&gt;UTF-8 and there are functions like json_encode() that assume utf-8 as
&lt;br&gt;well. &amp;nbsp;If you are just doing pass-through stuff, you can use whatever
&lt;br&gt;you want. &amp;nbsp;It is only if you want to manipulate the text in some manner
&lt;br&gt;that you need to worry about the encoding.
&lt;br&gt;&lt;br&gt;-Rasmus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP-support-of-Unicode--tp25730542p25730668.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25730542</id>
	<title>PHP support of Unicode?</title>
	<published>2009-10-03T09:45:28Z</published>
	<updated>2009-10-03T09:45:28Z</updated>
	<author>
		<name>Gunnar Vestergaard-2</name>
	</author>
	<content type="html">When using PHP, writing content in my local language and my neighbouring 
&lt;br&gt;contries' language, ISO 8859-1 has been sufficient as a character 
&lt;br&gt;encoding. But using PHP with other languages, is that possible? I mean, 
&lt;br&gt;does PHP support Unicode at present time? As I understand it, the 
&lt;br&gt;following statement is true:
&lt;br&gt;&amp;quot;PHP supports Unicode only as long as it is encoded as UTF-8&amp;quot;
&lt;br&gt;&lt;br&gt;Is that correct, or does PHP also support UTF-16?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP-support-of-Unicode--tp25730542p25730542.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25710904</id>
	<title>iconv - bad encoding</title>
	<published>2009-10-01T22:54:59Z</published>
	<updated>2009-10-01T22:54:59Z</updated>
	<author>
		<name>Jarosek J.</name>
	</author>
	<content type="html">Hello
&lt;br&gt;&lt;br&gt;I noticed a problem using iconv, but investigation showed, that this is
&lt;br&gt;not exectly the iconv itself, but something like php encoding.
&lt;br&gt;&lt;br&gt;&amp;nbsp;From the beginning:
&lt;br&gt;&lt;br&gt;a hava an incoming variable $text;
&lt;br&gt;it has some Polish diactics 'strona główna'.
&lt;br&gt;I expect to remove diactics : 'strona glowna'.
&lt;br&gt;&lt;br&gt;So I use iconv: iconv('utf-8', 'us-ascii//TRANSLIT', $text)
&lt;br&gt;&lt;br&gt;and unfortunetly i get: 'strona g??wna' ... But only under apache, in
&lt;br&gt;browser
&lt;br&gt;&lt;br&gt;The same file, command, etc run from bash gives: 'strona glowna' ... OK
&lt;br&gt;So i think : &amp;quot;bad config&amp;quot;, but double checked and configs are
&lt;br&gt;identical... (cli and apache2)
&lt;br&gt;&lt;br&gt;Best part: for 2 or 3 times after starting computer (debian), it didn't
&lt;br&gt;worker until I did: (apache start &amp;&amp; apache stop - not apache restart),
&lt;br&gt;then it worked. Now it doesn't work any more. No other config (except
&lt;br&gt;php was changed).
&lt;br&gt;&lt;br&gt;Any ideas?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/iconv---bad-encoding-tp25710904p25710904.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24267042</id>
	<title>Re: Problem using international characters</title>
	<published>2009-06-29T23:57:19Z</published>
	<updated>2009-06-29T23:57:19Z</updated>
	<author>
		<name>Nisse Engström</name>
	</author>
	<content type="html">On Mon, 29 Jun 2009 06:52:23 +0100, Nicholas Robinson wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have a mysql database and use a php application that captures, stores,
&lt;br&gt;&amp;gt; retrieves and displays data correctly - including French language words
&lt;br&gt;&amp;gt; with accents. It has been running for around five years. I've recently
&lt;br&gt;&amp;gt; written an extension that creates an openoffice writer document using
&lt;br&gt;&amp;gt; this data. Everything works apart from the these wretched French
&lt;br&gt;&amp;gt; characters!!! If I unzip the odt package and examine content.xml, then
&lt;br&gt;&amp;gt; the characters are wrong - but simply cutting and pasting correct ones
&lt;br&gt;&amp;gt; in gives me a working document, so the error is definitely in the way I
&lt;br&gt;&amp;gt; am creating the content using php.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; An example of the problem is Côte. As I've just typed it, the o has a
&lt;br&gt;&amp;gt; circumflex accent or 'hat' on it. Within the odt file, the o-circumflex
&lt;br&gt;&amp;gt; is shown as Ã´. Piping this to od -c gives 303 203 302 264. If I take
&lt;br&gt;&amp;gt; the o-circumflex character from gnome charmap and od -c this, then I get
&lt;br&gt;&amp;gt; 303 264. If I copy the character from my php/web app then it is correct.
&lt;br&gt;&amp;gt; Where are these two middle bytes coming from? I've tried various
&lt;br&gt;&amp;gt; combinations of mbstring functions and ini file settings but without
&lt;br&gt;&amp;gt; joy.
&lt;/div&gt;&lt;br&gt;Hexadecimal is easier on my eyes, so:
&lt;br&gt;&lt;br&gt;&amp;nbsp; 303 203 302 264 &amp;nbsp;== &amp;nbsp;c3 83 c2 b4
&lt;br&gt;&amp;nbsp; 303 264 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;== &amp;nbsp;c3 b4
&lt;br&gt;&lt;br&gt;These are UTF-8 encodings:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;c3 83&amp;gt;&amp;lt;c2 b4&amp;gt; &amp;nbsp;== U+00C3 (LATIN CAPITAL LETTER A WITH TILDE),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;U+00B4 (ACUTE ACCENT)
&lt;br&gt;&amp;nbsp; &amp;lt;c3 b4&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; == U+00F4 (LATIN SMALL LETTER O WITH CIRCUMFLEX)
&lt;br&gt;&lt;br&gt;&lt;br&gt;In other words, somewhere in the process, a perfectly fine
&lt;br&gt;UTF-8 encoded character:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;c3 b4&amp;gt; (U+00F4)
&lt;br&gt;&lt;br&gt;has been (incorrectly) converted from ISO-8859-1 (or similar)
&lt;br&gt;to UTF-8, resulting in:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;c3 83&amp;gt;&amp;lt;c2 b4&amp;gt; (U+00C3, U+00B4)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Perhaps this gives you some idea of what's going wrong.
&lt;br&gt;&lt;br&gt;&lt;br&gt;/Nisse
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-using-international-characters-tp24265610p24267042.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24265610</id>
	<title>Problem using international characters</title>
	<published>2009-06-28T22:52:23Z</published>
	<updated>2009-06-28T22:52:23Z</updated>
	<author>
		<name>NickRob</name>
	</author>
	<content type="html">I have a mysql database and use a php application that captures, stores,
&lt;br&gt;retrieves and displays data correctly - including French language words
&lt;br&gt;with accents. It has been running for around five years. I've recently
&lt;br&gt;written an extension that creates an openoffice writer document using
&lt;br&gt;this data. Everything works apart from the these wretched French
&lt;br&gt;characters!!! If I unzip the odt package and examine content.xml, then
&lt;br&gt;the characters are wrong - but simply cutting and pasting correct ones
&lt;br&gt;in gives me a working document, so the error is definitely in the way I
&lt;br&gt;am creating the content using php.
&lt;br&gt;&lt;br&gt;An example of the problem is Côte. As I've just typed it, the o has a
&lt;br&gt;circumflex accent or 'hat' on it. Within the odt file, the o-circumflex
&lt;br&gt;is shown as Ã´. Piping this to od -c gives 303 203 302 264. If I take
&lt;br&gt;the o-circumflex character from gnome charmap and od -c this, then I get
&lt;br&gt;303 264. If I copy the character from my php/web app then it is correct.
&lt;br&gt;Where are these two middle bytes coming from? I've tried various
&lt;br&gt;combinations of mbstring functions and ini file settings but without
&lt;br&gt;joy.
&lt;br&gt;&lt;br&gt;Thanks for any help you can give me.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-using-international-characters-tp24265610p24265610.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23812580</id>
	<title>Система минимизации топливных расходов для АВТО</title>
	<published>2009-06-01T03:02:03Z</published>
	<updated>2009-06-01T03:02:03Z</updated>
	<author>
		<name>Fern112 Mayo</name>
	</author>
	<content type="html">Экономь на бензине с нашей водородной установкой. 40 % гарантируем. Приглашаем к сотрудничеству &amp;nbsp;автомагазины, авто-центры, &amp;nbsp;инвесторов, дилеров, регионы. &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ecotop10.ru&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ecotop10.ru&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%D0%A1%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B0-%D0%BC%D0%B8%D0%BD%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D0%B8-%D1%82%D0%BE%D0%BF%D0%BB%D0%B8%D0%B2%D0%BD%D1%8B%D1%85-%D1%80%D0%B0%D1%81%D1%85%D0%BE%D0%B4%D0%BE%D0%B2-%D0%B4%D0%BB%D1%8F-%D0%90%D0%92%D0%A2%D0%9E-tp23812580p23812580.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22647936</id>
	<title>Re: problem with utf8_encode</title>
	<published>2009-03-22T09:52:17Z</published>
	<updated>2009-03-22T09:52:17Z</updated>
	<author>
		<name>Moriyoshi Koizumi-3</name>
	</author>
	<content type="html">Make sure which version of PCRE you are using and ask PCRE guys if you
&lt;br&gt;really want to stick to preg_match().
&lt;br&gt;&lt;br&gt;You can validate the encoding by either iconv() or
&lt;br&gt;mb_convert_encoding() by specifying UTF-8 both to the &amp;quot;from&amp;quot; encoding
&lt;br&gt;and &amp;quot;to&amp;quot; encoding. If the string contains a wrong UTF-8 byte sequence,
&lt;br&gt;it fails and then return false.
&lt;br&gt;&lt;br&gt;Moriyoshi
&lt;br&gt;&lt;br&gt;2009/3/23 Valkum &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22647936&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;valkum@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; When i follow the way on:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://bugs.php.net/bugs-generating-backtrace.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.php.net/bugs-generating-backtrace.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i get this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Core was generated by `/usr/bin/php ./test.php'.
&lt;br&gt;&amp;gt; Program terminated with signal 11, Segmentation fault.
&lt;br&gt;&amp;gt; [New process 5913]
&lt;br&gt;&amp;gt; #0  0xb7cecd43 in ?? () from /usr/lib/libpcre.so.3
&lt;br&gt;&amp;gt; (gdb) bt
&lt;br&gt;&amp;gt; #0  0xb7cecd43 in ?? () from /usr/lib/libpcre.so.3
&lt;br&gt;&amp;gt; Cannot access memory at address 0xbf43fb90
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So it is a pcre bug?? How can i fix it or when the pcre devs fix the bug?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Greetz Valkum
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Moriyoshi Koizumi schrieb:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That appears to be a PCRE's problem.
&lt;br&gt;&amp;gt; Try running it on gdb following the instruction:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://bugs.php.net/bugs-generating-backtrace.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.php.net/bugs-generating-backtrace.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Moriyoshi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/3/22 Valkum &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22647936&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;valkum@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i have a big problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When i try to encode a big string to utf8 i got a core dump
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; her is my code.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;?php
&lt;br&gt;&amp;gt;   function is_utf8($string) {
&lt;br&gt;&amp;gt;      // From &lt;a href=&quot;http://w3.org/International/questions/qa-forms-utf-8.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://w3.org/International/questions/qa-forms-utf-8.html&lt;/a&gt;&lt;br&gt;&amp;gt;      return preg_match('%^(?:
&lt;br&gt;&amp;gt;            [\x09\x0A\x0D\x20-\x7E]            # ASCII
&lt;br&gt;&amp;gt;          | [\xC2-\xDF][\x80-\xBF]            # non-overlong 2-byte
&lt;br&gt;&amp;gt;          |  \xE0[\xA0-\xBF][\x80-\xBF]        # excluding overlongs
&lt;br&gt;&amp;gt;          | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}  # straight 3-byte
&lt;br&gt;&amp;gt;          |  \xED[\x80-\x9F][\x80-\xBF]        # excluding surrogates
&lt;br&gt;&amp;gt;          |  \xF0[\x90-\xBF][\x80-\xBF]{2}    # planes 1-3
&lt;br&gt;&amp;gt;          | [\xF1-\xF3][\x80-\xBF]{3}          # planes 4-15
&lt;br&gt;&amp;gt;          |  \xF4[\x80-\x8F][\x80-\xBF]{2}    # plane 16
&lt;br&gt;&amp;gt;      )*$%xs', $string);
&lt;br&gt;&amp;gt;   }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   function output($string)
&lt;br&gt;&amp;gt;   {
&lt;br&gt;&amp;gt;       if(!is_utf8($string))
&lt;br&gt;&amp;gt;         $string = utf8_encode($string);
&lt;br&gt;&amp;gt;       return addslashes($string);
&lt;br&gt;&amp;gt;   }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   $string = &amp;lt;&amp;lt;&amp;lt;EOH
&lt;br&gt;&amp;gt;   &amp;lt;div align=&amp;quot;justify&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;- Im Aufbau -&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;h3 id=&amp;quot;aventurien&amp;quot;&amp;gt;Aventurien&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;div style=&amp;quot;border: 1px none ; margin: 5px 5px 5px 10px; float:
&lt;br&gt;&amp;gt;   right; width: 100px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Navigation&amp;lt;/strong&amp;gt; &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;a href=&amp;quot;#aventurien&amp;quot;&amp;gt;Aventurien&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;a href=&amp;quot;#ferdok&amp;quot;&amp;gt;Die Stadt Ferdok&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;a href=&amp;quot;#weitere&amp;quot;&amp;gt;Weitere Ziele&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;{mosimage} Aventurien ist ein Kontinent der Welt Dere und
&lt;br&gt;&amp;gt;   Ausgangspunkt f&amp;uuml;r die meisten Abenteuer in der Welt von &amp;lt;em&amp;gt;Das
&lt;br&gt;&amp;gt;   Schwarze Auge&amp;lt;/em&amp;gt;. Von Nord nach S&amp;uuml;d erstreckt sich der
&lt;br&gt;&amp;gt;   Kontinent ca. &amp;uuml;ber 3000 Meilen, von Ost nach West sind es
&lt;br&gt;&amp;gt;   immerhin noch 2000 Meilen. Von den Tundren Thorwals bis zur
&lt;br&gt;&amp;gt;   W&amp;uuml;ste Khom kann man so ziemlich alle Klimazonen in Aventurien
&lt;br&gt;&amp;gt;   finden.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Im Herzen Aventuriens liegt das Kaiserreich, auch das Mittelreich
&lt;br&gt;&amp;gt;   genannt, mit seiner Hauptstadt Gareth (rot umrandeter Bereich).  Die
&lt;br&gt;&amp;gt;   Kultur erinnert entfernt an das mittelalterliche Europa. Die
&lt;br&gt;&amp;gt;   Handlung Drakensangs wird zu gro&amp;szlig;en Teilen im Mittelreich
&lt;br&gt;&amp;gt;   spielen, genauer gesagt, in der Umgebung der Stadt Ferdok (s.u.).
&lt;br&gt;&amp;gt;   Doch auch andere, exotischere Orte sollen Ziel der Reise werden.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Zahlreiche V&amp;ouml;lker und Rassen bewohnen den Kontinent, allen
&lt;br&gt;&amp;gt;   voran nat&amp;uuml;rlich die Menschenv&amp;ouml;lker, die die Mehrheit der
&lt;br&gt;&amp;gt;   Bewohner stellen. Unter den Menschen gibt es zahlreiche
&lt;br&gt;&amp;gt;   unterschiedliche Kulturen, z. B. die wikinger&amp;auml;hnlichen
&lt;br&gt;&amp;gt;   Thorwaler, das Nomadenvolk der Nivesen oder eben die
&lt;br&gt;&amp;gt;   Mittell&amp;auml;nder. Daneben gibt es nat&amp;uuml;rlich noch
&lt;br&gt;&amp;gt;   fantastischere V&amp;ouml;lker wie die Elfen (mit mehrern Untergruppen),
&lt;br&gt;&amp;gt;   Zwerge, Orks und mehr, eben alles, was eine Fantasywelt zu bieten
&lt;br&gt;&amp;gt;   hat.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;h3 id=&amp;quot;ferdok&amp;quot;&amp;gt;Ferdok&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;lt;a target=&amp;quot;_blank&amp;quot; href=&amp;quot;images/stories/stadtplan_g.jpg&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;   {mosimage}&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Ferdok ist eine Grafenstadt im Mittelreich, etwas westlich der
&lt;br&gt;&amp;gt;   Hauptstadt Gareth, und hat etwa 3000 Einwohner. Sie geh&amp;ouml;rt zu
&lt;br&gt;&amp;gt;   den &amp;auml;ltesten menschlichen Siedlungen des Kosch. Im Laufe der
&lt;br&gt;&amp;gt;   Geschichte mu&amp;szlig;te die Stadt jedoch wegen einer &amp;Auml;nderung
&lt;br&gt;&amp;gt;   des Flu&amp;szlig;laufes des Gro&amp;szlig;en Flu&amp;szlig;es im Jahre 270 BF
&lt;br&gt;&amp;gt;   verlegt werden, da die Stadt in der Bedeutungslosigkeit zu versinken
&lt;br&gt;&amp;gt;   drohte. Heute liegt Ferdok wieder direkt an der Einm&amp;uuml;ndung des
&lt;br&gt;&amp;gt;   Rakula in den Gro&amp;szlig;en Flu&amp;szlig;. Obwohl  die Stadt die
&lt;br&gt;&amp;gt;   fr&amp;uuml;here Bedeutung l&amp;auml;ngst verloren hat, hat sich Ferdok als
&lt;br&gt;&amp;gt;   ein wichtiger Handelshafen etabliert (weltber&amp;uuml;hmt: Ferdoker
&lt;br&gt;&amp;gt;   Bier). Hier werden die Waren von Gareth umgeschlagen, die &amp;uuml;ber
&lt;br&gt;&amp;gt;   die gro&amp;szlig;e Handelsstra&amp;szlig;e von und nach Ferdok verfrachtet
&lt;br&gt;&amp;gt;   werden. Ferdok ist damit eines der Tore zum Westen und
&lt;br&gt;&amp;gt;   erm&amp;ouml;glicht schnelle Reisen in andere Teile der Aventuriens.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Verwaltungstechnisch geh&amp;ouml;rt Ferdok zum F&amp;uuml;rstentum
&lt;br&gt;&amp;gt;   Kosch, dessen Hauptstadt sie langezeit war. Mittlerweile hat sie
&lt;br&gt;&amp;gt;   diesen Status jedoch an Angbar verloren. Trotz seiner wichtigen
&lt;br&gt;&amp;gt;   Rolle als Handelsort sind die Bewohner Ferdoks ein eher biederes
&lt;br&gt;&amp;gt;   V&amp;ouml;lkchen und h&amp;auml;ngen der Erinnerung an die ruhmreichere
&lt;br&gt;&amp;gt;   Vergangenheit hinterher. Nachts muss man auf den Stra&amp;szlig;en
&lt;br&gt;&amp;gt;   neuerdings aufpassen. Zur Handlungszeit verunsichert n&amp;auml;mlich
&lt;br&gt;&amp;gt;   eine grauenhafte Mordserie die Bewohner Ferdoks und l&amp;auml;sst die
&lt;br&gt;&amp;gt;   Bev&amp;ouml;lkerung nachts nicht richtig schlafen. Einige Bereiche
&lt;br&gt;&amp;gt;   sollte man dann grunds&amp;auml;tzlich nicht mehr besuchen, wenn einem
&lt;br&gt;&amp;gt;   die eigene Gesundheit am Herzen liegt.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Die Stadt wird eine zentrale Anlaufstelle in Drakensang sein,
&lt;br&gt;&amp;gt;   weswegen sie auch vollst&amp;auml;ndig, nach den Vorgaben des
&lt;br&gt;&amp;gt;   DSA-Regelwerks in das Spiel eingebaut wird. Der Stadtplan (zum
&lt;br&gt;&amp;gt;   Vergr&amp;ouml;&amp;szlig;ern anklicken) wurde von Radon Labs dem Regelwerk
&lt;br&gt;&amp;gt;   direkt entnommen und wird Euch auch f&amp;uuml;r Drakensang gute Dienste
&lt;br&gt;&amp;gt;   leisten.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;h3 id=&amp;quot;weitere&amp;quot;&amp;gt;Weitere Reiseziele des Spiels&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;a target=&amp;quot;_blank&amp;quot;
&lt;br&gt;&amp;gt;   href=&amp;quot;images/stories/artikel/map.jpg&amp;quot;&amp;gt;{mosimage}&amp;lt;/a&amp;gt; Insgesamt soll
&lt;br&gt;&amp;gt;   es 12 Hauptregionen geben, die jeweils ca. 1 Quadratkilometer
&lt;br&gt;&amp;gt;   gro&amp;szlig; sind. Alle diese Regionen unterteilen sich nochmal in
&lt;br&gt;&amp;gt;   &amp;uuml;ber 50 kleinere Gebiete. Bekannt sind neben Ferdok bislang:
&lt;br&gt;&amp;gt;   &amp;lt;ul&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Avestreu (kleines Dorf s&amp;uuml;d&amp;ouml;stl. von Ferdok)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Dunkelwald (s&amp;uuml;dl. von Ferdok)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Ruine Blutberge (s&amp;uuml;dl. von Ferdok, am Rand des
&lt;br&gt;&amp;gt;   Dunkelwaldes)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Moorbr&amp;uuml;ck (s&amp;uuml;dl. des Dunkelwaldes)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Burg Grimmzahn (westl. von Moorbr&amp;uuml;ck)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Murolosch (eine Zwergenstadt)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;der Berg Drachensang / Drakensang (im Amboss-Gebirge
&lt;br&gt;&amp;gt;   gelegen)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;/ul&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Ausf&amp;uuml;hrlichere Infos:&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;lt;a title=&amp;quot;Wiki Aventurica&amp;quot; target=&amp;quot;_blank&amp;quot;
&lt;br&gt;&amp;gt;   href=&amp;quot;&lt;a href=&quot;http://dsa4.de/wiki&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dsa4.de/wiki&lt;/a&gt;&amp;quot;&amp;gt;Wiki Aventurica &amp;lt;/a&amp;gt;(externer Link)&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;a href=&amp;quot;&lt;a href=&quot;http://www.eychgras.de/koschwiki/index.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.eychgras.de/koschwiki/index.php&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt;   target=&amp;quot;_blank&amp;quot;&amp;gt;KoschWiki&amp;lt;/a&amp;gt; (externer Link)&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;/div&amp;gt;
&lt;br&gt;&amp;gt;   EOH;
&lt;br&gt;&amp;gt;   print_r(output($string));
&lt;br&gt;&amp;gt;   ?&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please help me. When i delete some code from &amp;lt;ul&amp;gt; to &amp;lt;/div&amp;gt; at the end, i
&lt;br&gt;&amp;gt; get no core dump. only with the full text.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What is the problem??
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Greetz Valkum
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-with-utf8_encode-tp22641096p22647936.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22647723</id>
	<title>Re: problem with utf8_encode</title>
	<published>2009-03-22T09:29:55Z</published>
	<updated>2009-03-22T09:29:55Z</updated>
	<author>
		<name>Valkum</name>
	</author>
	<content type="html">When i follow the way on:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://bugs.php.net/bugs-generating-backtrace.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.php.net/bugs-generating-backtrace.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;i get this:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Core was generated by `/usr/bin/php ./test.php'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Program terminated with signal 11, Segmentation fault.
&lt;br&gt;&amp;nbsp; &amp;nbsp; [New process 5913]
&lt;br&gt;&amp;nbsp; &amp;nbsp; #0 &amp;nbsp;0xb7cecd43 in ?? () from /usr/lib/libpcre.so.3
&lt;br&gt;&amp;nbsp; &amp;nbsp; (gdb) bt
&lt;br&gt;&amp;nbsp; &amp;nbsp; #0 &amp;nbsp;0xb7cecd43 in ?? () from /usr/lib/libpcre.so.3
&lt;br&gt;&amp;nbsp; &amp;nbsp; Cannot access memory at address 0xbf43fb90
&lt;br&gt;&lt;br&gt;&lt;br&gt;So it is a pcre bug?? How can i fix it or when the pcre devs fix the bug?
&lt;br&gt;&lt;br&gt;Greetz Valkum
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Moriyoshi Koizumi schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That appears to be a PCRE's problem.
&lt;br&gt;&amp;gt; Try running it on gdb following the instruction:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://bugs.php.net/bugs-generating-backtrace.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.php.net/bugs-generating-backtrace.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Moriyoshi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/3/22 Valkum &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22647723&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;valkum@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; i have a big problem.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; When i try to encode a big string to utf8 i got a core dump
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; her is my code.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;?php
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; function is_utf8($string) {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;// From &lt;a href=&quot;http://w3.org/International/questions/qa-forms-utf-8.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://w3.org/International/questions/qa-forms-utf-8.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;return preg_match('%^(?:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[\x09\x0A\x0D\x20-\x7E] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# ASCII
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| [\xC2-\xDF][\x80-\xBF] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# non-overlong 2-byte
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;\xE0[\xA0-\xBF][\x80-\xBF] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# excluding overlongs
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} &amp;nbsp;# straight 3-byte
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;\xED[\x80-\x9F][\x80-\xBF] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# excluding surrogates
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;\xF0[\x90-\xBF][\x80-\xBF]{2} &amp;nbsp; &amp;nbsp;# planes 1-3
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| [\xF1-\xF3][\x80-\xBF]{3} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# planes 4-15
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;\xF4[\x80-\x8F][\x80-\xBF]{2} &amp;nbsp; &amp;nbsp;# plane 16
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;)*$%xs', $string);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; function output($string)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(!is_utf8($string))
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $string = utf8_encode($string);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; return addslashes($string);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; $string = &amp;lt;&amp;lt;&amp;lt;EOH
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;div align=&amp;quot;justify&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;- Im Aufbau -&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;h3 id=&amp;quot;aventurien&amp;quot;&amp;gt;Aventurien&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;div style=&amp;quot;border: 1px none ; margin: 5px 5px 5px 10px; float:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; right; width: 100px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Navigation&amp;lt;/strong&amp;gt; &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;a href=&amp;quot;#aventurien&amp;quot;&amp;gt;Aventurien&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;a href=&amp;quot;#ferdok&amp;quot;&amp;gt;Die Stadt Ferdok&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;a href=&amp;quot;#weitere&amp;quot;&amp;gt;Weitere Ziele&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;{mosimage} Aventurien ist ein Kontinent der Welt Dere und
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Ausgangspunkt f&amp;uuml;r die meisten Abenteuer in der Welt von &amp;lt;em&amp;gt;Das
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Schwarze Auge&amp;lt;/em&amp;gt;. Von Nord nach S&amp;uuml;d erstreckt sich der
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Kontinent ca. &amp;uuml;ber 3000 Meilen, von Ost nach West sind es
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; immerhin noch 2000 Meilen. Von den Tundren Thorwals bis zur
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; W&amp;uuml;ste Khom kann man so ziemlich alle Klimazonen in Aventurien
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; finden.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;Im Herzen Aventuriens liegt das Kaiserreich, auch das Mittelreich
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; genannt, mit seiner Hauptstadt Gareth (rot umrandeter Bereich). &amp;nbsp;Die
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Kultur erinnert entfernt an das mittelalterliche Europa. Die
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Handlung Drakensangs wird zu gro&amp;szlig;en Teilen im Mittelreich
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; spielen, genauer gesagt, in der Umgebung der Stadt Ferdok (s.u.).
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Doch auch andere, exotischere Orte sollen Ziel der Reise werden.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;Zahlreiche V&amp;ouml;lker und Rassen bewohnen den Kontinent, allen
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; voran nat&amp;uuml;rlich die Menschenv&amp;ouml;lker, die die Mehrheit der
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Bewohner stellen. Unter den Menschen gibt es zahlreiche
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; unterschiedliche Kulturen, z. B. die wikinger&amp;auml;hnlichen
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Thorwaler, das Nomadenvolk der Nivesen oder eben die
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Mittell&amp;auml;nder. Daneben gibt es nat&amp;uuml;rlich noch
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; fantastischere V&amp;ouml;lker wie die Elfen (mit mehrern Untergruppen),
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Zwerge, Orks und mehr, eben alles, was eine Fantasywelt zu bieten
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; hat.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;h3 id=&amp;quot;ferdok&amp;quot;&amp;gt;Ferdok&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;a target=&amp;quot;_blank&amp;quot; href=&amp;quot;images/stories/stadtplan_g.jpg&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; {mosimage}&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;Ferdok ist eine Grafenstadt im Mittelreich, etwas westlich der
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Hauptstadt Gareth, und hat etwa 3000 Einwohner. Sie geh&amp;ouml;rt zu
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; den &amp;auml;ltesten menschlichen Siedlungen des Kosch. Im Laufe der
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Geschichte mu&amp;szlig;te die Stadt jedoch wegen einer &amp;Auml;nderung
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; des Flu&amp;szlig;laufes des Gro&amp;szlig;en Flu&amp;szlig;es im Jahre 270 BF
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; verlegt werden, da die Stadt in der Bedeutungslosigkeit zu versinken
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; drohte. Heute liegt Ferdok wieder direkt an der Einm&amp;uuml;ndung des
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Rakula in den Gro&amp;szlig;en Flu&amp;szlig;. Obwohl &amp;nbsp;die Stadt die
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; fr&amp;uuml;here Bedeutung l&amp;auml;ngst verloren hat, hat sich Ferdok als
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; ein wichtiger Handelshafen etabliert (weltber&amp;uuml;hmt: Ferdoker
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Bier). Hier werden die Waren von Gareth umgeschlagen, die &amp;uuml;ber
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; die gro&amp;szlig;e Handelsstra&amp;szlig;e von und nach Ferdok verfrachtet
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; werden. Ferdok ist damit eines der Tore zum Westen und
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; erm&amp;ouml;glicht schnelle Reisen in andere Teile der Aventuriens.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;Verwaltungstechnisch geh&amp;ouml;rt Ferdok zum F&amp;uuml;rstentum
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Kosch, dessen Hauptstadt sie langezeit war. Mittlerweile hat sie
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; diesen Status jedoch an Angbar verloren. Trotz seiner wichtigen
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Rolle als Handelsort sind die Bewohner Ferdoks ein eher biederes
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; V&amp;ouml;lkchen und h&amp;auml;ngen der Erinnerung an die ruhmreichere
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Vergangenheit hinterher. Nachts muss man auf den Stra&amp;szlig;en
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; neuerdings aufpassen. Zur Handlungszeit verunsichert n&amp;auml;mlich
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; eine grauenhafte Mordserie die Bewohner Ferdoks und l&amp;auml;sst die
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Bev&amp;ouml;lkerung nachts nicht richtig schlafen. Einige Bereiche
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; sollte man dann grunds&amp;auml;tzlich nicht mehr besuchen, wenn einem
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; die eigene Gesundheit am Herzen liegt.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;Die Stadt wird eine zentrale Anlaufstelle in Drakensang sein,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; weswegen sie auch vollst&amp;auml;ndig, nach den Vorgaben des
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; DSA-Regelwerks in das Spiel eingebaut wird. Der Stadtplan (zum
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Vergr&amp;ouml;&amp;szlig;ern anklicken) wurde von Radon Labs dem Regelwerk
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; direkt entnommen und wird Euch auch f&amp;uuml;r Drakensang gute Dienste
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; leisten.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;h3 id=&amp;quot;weitere&amp;quot;&amp;gt;Weitere Reiseziele des Spiels&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;a target=&amp;quot;_blank&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; href=&amp;quot;images/stories/artikel/map.jpg&amp;quot;&amp;gt;{mosimage}&amp;lt;/a&amp;gt; Insgesamt soll
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; es 12 Hauptregionen geben, die jeweils ca. 1 Quadratkilometer
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; gro&amp;szlig; sind. Alle diese Regionen unterteilen sich nochmal in
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;uuml;ber 50 kleinere Gebiete. Bekannt sind neben Ferdok bislang:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;ul&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Avestreu (kleines Dorf s&amp;uuml;d&amp;ouml;stl. von Ferdok)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Dunkelwald (s&amp;uuml;dl. von Ferdok)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Ruine Blutberge (s&amp;uuml;dl. von Ferdok, am Rand des
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Dunkelwaldes)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Moorbr&amp;uuml;ck (s&amp;uuml;dl. des Dunkelwaldes)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Burg Grimmzahn (westl. von Moorbr&amp;uuml;ck)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Murolosch (eine Zwergenstadt)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;der Berg Drachensang / Drakensang (im Amboss-Gebirge
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; gelegen)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;/ul&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;Ausf&amp;uuml;hrlichere Infos:&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;a title=&amp;quot;Wiki Aventurica&amp;quot; target=&amp;quot;_blank&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; href=&amp;quot;&lt;a href=&quot;http://dsa4.de/wiki&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dsa4.de/wiki&lt;/a&gt;&amp;quot;&amp;gt;Wiki Aventurica &amp;lt;/a&amp;gt;(externer Link)&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;a href=&amp;quot;&lt;a href=&quot;http://www.eychgras.de/koschwiki/index.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.eychgras.de/koschwiki/index.php&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; target=&amp;quot;_blank&amp;quot;&amp;gt;KoschWiki&amp;lt;/a&amp;gt; (externer Link)&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;/div&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; EOH;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; print_r(output($string));
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; ?&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Please help me. When i delete some code from &amp;lt;ul&amp;gt; to &amp;lt;/div&amp;gt; at the end, i
&lt;br&gt;&amp;gt;&amp;gt; get no core dump. only with the full text.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; What is the problem??
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Greetz Valkum
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-with-utf8_encode-tp22641096p22647723.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22644230</id>
	<title>Re: problem with utf8_encode</title>
	<published>2009-03-22T01:54:16Z</published>
	<updated>2009-03-22T01:54:16Z</updated>
	<author>
		<name>Moriyoshi Koizumi-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;That appears to be a PCRE's problem.
&lt;br&gt;Try running it on gdb following the instruction:
&lt;br&gt;&lt;a href=&quot;http://bugs.php.net/bugs-generating-backtrace.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.php.net/bugs-generating-backtrace.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Moriyoshi
&lt;br&gt;&lt;br&gt;2009/3/22 Valkum &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22644230&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;valkum@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i have a big problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When i try to encode a big string to utf8 i got a core dump
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; her is my code.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;?php
&lt;br&gt;&amp;gt;   function is_utf8($string) {
&lt;br&gt;&amp;gt;      // From &lt;a href=&quot;http://w3.org/International/questions/qa-forms-utf-8.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://w3.org/International/questions/qa-forms-utf-8.html&lt;/a&gt;&lt;br&gt;&amp;gt;      return preg_match('%^(?:
&lt;br&gt;&amp;gt;            [\x09\x0A\x0D\x20-\x7E]            # ASCII
&lt;br&gt;&amp;gt;          | [\xC2-\xDF][\x80-\xBF]            # non-overlong 2-byte
&lt;br&gt;&amp;gt;          |  \xE0[\xA0-\xBF][\x80-\xBF]        # excluding overlongs
&lt;br&gt;&amp;gt;          | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}  # straight 3-byte
&lt;br&gt;&amp;gt;          |  \xED[\x80-\x9F][\x80-\xBF]        # excluding surrogates
&lt;br&gt;&amp;gt;          |  \xF0[\x90-\xBF][\x80-\xBF]{2}    # planes 1-3
&lt;br&gt;&amp;gt;          | [\xF1-\xF3][\x80-\xBF]{3}          # planes 4-15
&lt;br&gt;&amp;gt;          |  \xF4[\x80-\x8F][\x80-\xBF]{2}    # plane 16
&lt;br&gt;&amp;gt;      )*$%xs', $string);
&lt;br&gt;&amp;gt;   }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   function output($string)
&lt;br&gt;&amp;gt;   {
&lt;br&gt;&amp;gt;       if(!is_utf8($string))
&lt;br&gt;&amp;gt;         $string = utf8_encode($string);
&lt;br&gt;&amp;gt;       return addslashes($string);
&lt;br&gt;&amp;gt;   }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   $string = &amp;lt;&amp;lt;&amp;lt;EOH
&lt;br&gt;&amp;gt;   &amp;lt;div align=&amp;quot;justify&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;- Im Aufbau -&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;h3 id=&amp;quot;aventurien&amp;quot;&amp;gt;Aventurien&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;div style=&amp;quot;border: 1px none ; margin: 5px 5px 5px 10px; float:
&lt;br&gt;&amp;gt;   right; width: 100px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Navigation&amp;lt;/strong&amp;gt; &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;a href=&amp;quot;#aventurien&amp;quot;&amp;gt;Aventurien&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;a href=&amp;quot;#ferdok&amp;quot;&amp;gt;Die Stadt Ferdok&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;a href=&amp;quot;#weitere&amp;quot;&amp;gt;Weitere Ziele&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;{mosimage} Aventurien ist ein Kontinent der Welt Dere und
&lt;br&gt;&amp;gt;   Ausgangspunkt f&amp;uuml;r die meisten Abenteuer in der Welt von &amp;lt;em&amp;gt;Das
&lt;br&gt;&amp;gt;   Schwarze Auge&amp;lt;/em&amp;gt;. Von Nord nach S&amp;uuml;d erstreckt sich der
&lt;br&gt;&amp;gt;   Kontinent ca. &amp;uuml;ber 3000 Meilen, von Ost nach West sind es
&lt;br&gt;&amp;gt;   immerhin noch 2000 Meilen. Von den Tundren Thorwals bis zur
&lt;br&gt;&amp;gt;   W&amp;uuml;ste Khom kann man so ziemlich alle Klimazonen in Aventurien
&lt;br&gt;&amp;gt;   finden.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Im Herzen Aventuriens liegt das Kaiserreich, auch das Mittelreich
&lt;br&gt;&amp;gt;   genannt, mit seiner Hauptstadt Gareth (rot umrandeter Bereich).  Die
&lt;br&gt;&amp;gt;   Kultur erinnert entfernt an das mittelalterliche Europa. Die
&lt;br&gt;&amp;gt;   Handlung Drakensangs wird zu gro&amp;szlig;en Teilen im Mittelreich
&lt;br&gt;&amp;gt;   spielen, genauer gesagt, in der Umgebung der Stadt Ferdok (s.u.).
&lt;br&gt;&amp;gt;   Doch auch andere, exotischere Orte sollen Ziel der Reise werden.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Zahlreiche V&amp;ouml;lker und Rassen bewohnen den Kontinent, allen
&lt;br&gt;&amp;gt;   voran nat&amp;uuml;rlich die Menschenv&amp;ouml;lker, die die Mehrheit der
&lt;br&gt;&amp;gt;   Bewohner stellen. Unter den Menschen gibt es zahlreiche
&lt;br&gt;&amp;gt;   unterschiedliche Kulturen, z. B. die wikinger&amp;auml;hnlichen
&lt;br&gt;&amp;gt;   Thorwaler, das Nomadenvolk der Nivesen oder eben die
&lt;br&gt;&amp;gt;   Mittell&amp;auml;nder. Daneben gibt es nat&amp;uuml;rlich noch
&lt;br&gt;&amp;gt;   fantastischere V&amp;ouml;lker wie die Elfen (mit mehrern Untergruppen),
&lt;br&gt;&amp;gt;   Zwerge, Orks und mehr, eben alles, was eine Fantasywelt zu bieten
&lt;br&gt;&amp;gt;   hat.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;h3 id=&amp;quot;ferdok&amp;quot;&amp;gt;Ferdok&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;lt;a target=&amp;quot;_blank&amp;quot; href=&amp;quot;images/stories/stadtplan_g.jpg&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;   {mosimage}&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Ferdok ist eine Grafenstadt im Mittelreich, etwas westlich der
&lt;br&gt;&amp;gt;   Hauptstadt Gareth, und hat etwa 3000 Einwohner. Sie geh&amp;ouml;rt zu
&lt;br&gt;&amp;gt;   den &amp;auml;ltesten menschlichen Siedlungen des Kosch. Im Laufe der
&lt;br&gt;&amp;gt;   Geschichte mu&amp;szlig;te die Stadt jedoch wegen einer &amp;Auml;nderung
&lt;br&gt;&amp;gt;   des Flu&amp;szlig;laufes des Gro&amp;szlig;en Flu&amp;szlig;es im Jahre 270 BF
&lt;br&gt;&amp;gt;   verlegt werden, da die Stadt in der Bedeutungslosigkeit zu versinken
&lt;br&gt;&amp;gt;   drohte. Heute liegt Ferdok wieder direkt an der Einm&amp;uuml;ndung des
&lt;br&gt;&amp;gt;   Rakula in den Gro&amp;szlig;en Flu&amp;szlig;. Obwohl  die Stadt die
&lt;br&gt;&amp;gt;   fr&amp;uuml;here Bedeutung l&amp;auml;ngst verloren hat, hat sich Ferdok als
&lt;br&gt;&amp;gt;   ein wichtiger Handelshafen etabliert (weltber&amp;uuml;hmt: Ferdoker
&lt;br&gt;&amp;gt;   Bier). Hier werden die Waren von Gareth umgeschlagen, die &amp;uuml;ber
&lt;br&gt;&amp;gt;   die gro&amp;szlig;e Handelsstra&amp;szlig;e von und nach Ferdok verfrachtet
&lt;br&gt;&amp;gt;   werden. Ferdok ist damit eines der Tore zum Westen und
&lt;br&gt;&amp;gt;   erm&amp;ouml;glicht schnelle Reisen in andere Teile der Aventuriens.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Verwaltungstechnisch geh&amp;ouml;rt Ferdok zum F&amp;uuml;rstentum
&lt;br&gt;&amp;gt;   Kosch, dessen Hauptstadt sie langezeit war. Mittlerweile hat sie
&lt;br&gt;&amp;gt;   diesen Status jedoch an Angbar verloren. Trotz seiner wichtigen
&lt;br&gt;&amp;gt;   Rolle als Handelsort sind die Bewohner Ferdoks ein eher biederes
&lt;br&gt;&amp;gt;   V&amp;ouml;lkchen und h&amp;auml;ngen der Erinnerung an die ruhmreichere
&lt;br&gt;&amp;gt;   Vergangenheit hinterher. Nachts muss man auf den Stra&amp;szlig;en
&lt;br&gt;&amp;gt;   neuerdings aufpassen. Zur Handlungszeit verunsichert n&amp;auml;mlich
&lt;br&gt;&amp;gt;   eine grauenhafte Mordserie die Bewohner Ferdoks und l&amp;auml;sst die
&lt;br&gt;&amp;gt;   Bev&amp;ouml;lkerung nachts nicht richtig schlafen. Einige Bereiche
&lt;br&gt;&amp;gt;   sollte man dann grunds&amp;auml;tzlich nicht mehr besuchen, wenn einem
&lt;br&gt;&amp;gt;   die eigene Gesundheit am Herzen liegt.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Die Stadt wird eine zentrale Anlaufstelle in Drakensang sein,
&lt;br&gt;&amp;gt;   weswegen sie auch vollst&amp;auml;ndig, nach den Vorgaben des
&lt;br&gt;&amp;gt;   DSA-Regelwerks in das Spiel eingebaut wird. Der Stadtplan (zum
&lt;br&gt;&amp;gt;   Vergr&amp;ouml;&amp;szlig;ern anklicken) wurde von Radon Labs dem Regelwerk
&lt;br&gt;&amp;gt;   direkt entnommen und wird Euch auch f&amp;uuml;r Drakensang gute Dienste
&lt;br&gt;&amp;gt;   leisten.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;h3 id=&amp;quot;weitere&amp;quot;&amp;gt;Weitere Reiseziele des Spiels&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;a target=&amp;quot;_blank&amp;quot;
&lt;br&gt;&amp;gt;   href=&amp;quot;images/stories/artikel/map.jpg&amp;quot;&amp;gt;{mosimage}&amp;lt;/a&amp;gt; Insgesamt soll
&lt;br&gt;&amp;gt;   es 12 Hauptregionen geben, die jeweils ca. 1 Quadratkilometer
&lt;br&gt;&amp;gt;   gro&amp;szlig; sind. Alle diese Regionen unterteilen sich nochmal in
&lt;br&gt;&amp;gt;   &amp;uuml;ber 50 kleinere Gebiete. Bekannt sind neben Ferdok bislang:
&lt;br&gt;&amp;gt;   &amp;lt;ul&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Avestreu (kleines Dorf s&amp;uuml;d&amp;ouml;stl. von Ferdok)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Dunkelwald (s&amp;uuml;dl. von Ferdok)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Ruine Blutberge (s&amp;uuml;dl. von Ferdok, am Rand des
&lt;br&gt;&amp;gt;   Dunkelwaldes)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Moorbr&amp;uuml;ck (s&amp;uuml;dl. des Dunkelwaldes)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Burg Grimmzahn (westl. von Moorbr&amp;uuml;ck)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;Murolosch (eine Zwergenstadt)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;li&amp;gt;der Berg Drachensang / Drakensang (im Amboss-Gebirge
&lt;br&gt;&amp;gt;   gelegen)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;/ul&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;Ausf&amp;uuml;hrlichere Infos:&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;lt;a title=&amp;quot;Wiki Aventurica&amp;quot; target=&amp;quot;_blank&amp;quot;
&lt;br&gt;&amp;gt;   href=&amp;quot;&lt;a href=&quot;http://dsa4.de/wiki&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dsa4.de/wiki&lt;/a&gt;&amp;quot;&amp;gt;Wiki Aventurica &amp;lt;/a&amp;gt;(externer Link)&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;a href=&amp;quot;&lt;a href=&quot;http://www.eychgras.de/koschwiki/index.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.eychgras.de/koschwiki/index.php&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt;   target=&amp;quot;_blank&amp;quot;&amp;gt;KoschWiki&amp;lt;/a&amp;gt; (externer Link)&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;/div&amp;gt;
&lt;br&gt;&amp;gt;   EOH;
&lt;br&gt;&amp;gt;   print_r(output($string));
&lt;br&gt;&amp;gt;   ?&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please help me. When i delete some code from &amp;lt;ul&amp;gt; to &amp;lt;/div&amp;gt; at the end, i
&lt;br&gt;&amp;gt; get no core dump. only with the full text.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What is the problem??
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Greetz Valkum
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-with-utf8_encode-tp22641096p22644230.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22644222</id>
	<title>Re: mb_check_encoding</title>
	<published>2009-03-22T01:52:44Z</published>
	<updated>2009-03-22T01:52:44Z</updated>
	<author>
		<name>Moriyoshi Koizumi-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;mb_check_encoding() without the first parameter is never supposed to
&lt;br&gt;work properly.
&lt;br&gt;I'm thinking of removing this feature.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Moriyoshi
&lt;br&gt;&lt;br&gt;On Sat, Mar 21, 2009 at 7:10 AM, Giacomo Mazzocato &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22644222&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gmazzocato@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; if (mb_check_encoding()) {
&lt;br&gt;&amp;gt;   echo &amp;quot;request encoding ok&amp;quot; ;
&lt;br&gt;&amp;gt; } else {
&lt;br&gt;&amp;gt;   echo &amp;quot;request encoding not ok&amp;quot; ;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; echo &amp;quot;&amp;lt;/p&amp;gt;&amp;quot; ;
&lt;br&gt;&amp;gt; ?&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;/body&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;/html&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you post the value from your browser, all is ok because the
&lt;br&gt;&amp;gt; encoding of the page is recognized by the browser as utf-8 (I think).
&lt;br&gt;&amp;gt; But if I call that page with curl simulating an Invalid encoding
&lt;br&gt;&amp;gt; attack,
&lt;br&gt;&amp;gt; I get the same result(request encoding ok) while I should get request encoding
&lt;br&gt;&amp;gt; not ok.
&lt;br&gt;&amp;gt; Here's the command I used :
&lt;br&gt;&amp;gt; curl  --data-urlencode  $'foo=prov\xef'
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://localhost/mine/test/encoding.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/mine/test/encoding.php&lt;/a&gt;&lt;br&gt;&amp;gt; Thank you in advance
&lt;br&gt;&amp;gt; Bye,
&lt;br&gt;&amp;gt; Giacomo
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mb_check_encoding-tp22629775p22644222.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22641096</id>
	<title>problem with utf8_encode</title>
	<published>2009-03-21T15:35:29Z</published>
	<updated>2009-03-21T15:35:29Z</updated>
	<author>
		<name>Valkum</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;i have a big problem.
&lt;br&gt;&lt;br&gt;When i try to encode a big string to utf8 i got a core dump
&lt;br&gt;&lt;br&gt;her is my code.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;?php
&lt;br&gt;&amp;nbsp; &amp;nbsp; function is_utf8($string) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// From &lt;a href=&quot;http://w3.org/International/questions/qa-forms-utf-8.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://w3.org/International/questions/qa-forms-utf-8.html&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return preg_match('%^(?:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[\x09\x0A\x0D\x20-\x7E] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# ASCII
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| [\xC2-\xDF][\x80-\xBF] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# non-overlong 2-byte
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;\xE0[\xA0-\xBF][\x80-\xBF] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# excluding overlongs
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} &amp;nbsp;# straight 3-byte
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;\xED[\x80-\x9F][\x80-\xBF] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# excluding surrogates
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;\xF0[\x90-\xBF][\x80-\xBF]{2} &amp;nbsp; &amp;nbsp;# planes 1-3
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| [\xF1-\xF3][\x80-\xBF]{3} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# planes 4-15
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;\xF4[\x80-\x8F][\x80-\xBF]{2} &amp;nbsp; &amp;nbsp;# plane 16
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)*$%xs', $string);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; function output($string)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(!is_utf8($string))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $string = utf8_encode($string);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return addslashes($string);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; $string = &amp;lt;&amp;lt;&amp;lt;EOH
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div align=&amp;quot;justify&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;- Im Aufbau -&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;h3 id=&amp;quot;aventurien&amp;quot;&amp;gt;Aventurien&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div style=&amp;quot;border: 1px none ; margin: 5px 5px 5px 10px; float:
&lt;br&gt;&amp;nbsp; &amp;nbsp; right; width: 100px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Navigation&amp;lt;/strong&amp;gt; &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;a href=&amp;quot;#aventurien&amp;quot;&amp;gt;Aventurien&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;a href=&amp;quot;#ferdok&amp;quot;&amp;gt;Die Stadt Ferdok&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;a href=&amp;quot;#weitere&amp;quot;&amp;gt;Weitere Ziele&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;{mosimage} Aventurien ist ein Kontinent der Welt Dere und
&lt;br&gt;&amp;nbsp; &amp;nbsp; Ausgangspunkt f&amp;uuml;r die meisten Abenteuer in der Welt von &amp;lt;em&amp;gt;Das
&lt;br&gt;&amp;nbsp; &amp;nbsp; Schwarze Auge&amp;lt;/em&amp;gt;. Von Nord nach S&amp;uuml;d erstreckt sich der
&lt;br&gt;&amp;nbsp; &amp;nbsp; Kontinent ca. &amp;uuml;ber 3000 Meilen, von Ost nach West sind es
&lt;br&gt;&amp;nbsp; &amp;nbsp; immerhin noch 2000 Meilen. Von den Tundren Thorwals bis zur
&lt;br&gt;&amp;nbsp; &amp;nbsp; W&amp;uuml;ste Khom kann man so ziemlich alle Klimazonen in Aventurien
&lt;br&gt;&amp;nbsp; &amp;nbsp; finden.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Im Herzen Aventuriens liegt das Kaiserreich, auch das Mittelreich
&lt;br&gt;&amp;nbsp; &amp;nbsp; genannt, mit seiner Hauptstadt Gareth (rot umrandeter Bereich). &amp;nbsp;Die
&lt;br&gt;&amp;nbsp; &amp;nbsp; Kultur erinnert entfernt an das mittelalterliche Europa. Die
&lt;br&gt;&amp;nbsp; &amp;nbsp; Handlung Drakensangs wird zu gro&amp;szlig;en Teilen im Mittelreich
&lt;br&gt;&amp;nbsp; &amp;nbsp; spielen, genauer gesagt, in der Umgebung der Stadt Ferdok (s.u.).
&lt;br&gt;&amp;nbsp; &amp;nbsp; Doch auch andere, exotischere Orte sollen Ziel der Reise werden.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Zahlreiche V&amp;ouml;lker und Rassen bewohnen den Kontinent, allen
&lt;br&gt;&amp;nbsp; &amp;nbsp; voran nat&amp;uuml;rlich die Menschenv&amp;ouml;lker, die die Mehrheit der
&lt;br&gt;&amp;nbsp; &amp;nbsp; Bewohner stellen. Unter den Menschen gibt es zahlreiche
&lt;br&gt;&amp;nbsp; &amp;nbsp; unterschiedliche Kulturen, z. B. die wikinger&amp;auml;hnlichen
&lt;br&gt;&amp;nbsp; &amp;nbsp; Thorwaler, das Nomadenvolk der Nivesen oder eben die
&lt;br&gt;&amp;nbsp; &amp;nbsp; Mittell&amp;auml;nder. Daneben gibt es nat&amp;uuml;rlich noch
&lt;br&gt;&amp;nbsp; &amp;nbsp; fantastischere V&amp;ouml;lker wie die Elfen (mit mehrern Untergruppen),
&lt;br&gt;&amp;nbsp; &amp;nbsp; Zwerge, Orks und mehr, eben alles, was eine Fantasywelt zu bieten
&lt;br&gt;&amp;nbsp; &amp;nbsp; hat.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;h3 id=&amp;quot;ferdok&amp;quot;&amp;gt;Ferdok&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;a target=&amp;quot;_blank&amp;quot; href=&amp;quot;images/stories/stadtplan_g.jpg&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; {mosimage}&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Ferdok ist eine Grafenstadt im Mittelreich, etwas westlich der
&lt;br&gt;&amp;nbsp; &amp;nbsp; Hauptstadt Gareth, und hat etwa 3000 Einwohner. Sie geh&amp;ouml;rt zu
&lt;br&gt;&amp;nbsp; &amp;nbsp; den &amp;auml;ltesten menschlichen Siedlungen des Kosch. Im Laufe der
&lt;br&gt;&amp;nbsp; &amp;nbsp; Geschichte mu&amp;szlig;te die Stadt jedoch wegen einer &amp;Auml;nderung
&lt;br&gt;&amp;nbsp; &amp;nbsp; des Flu&amp;szlig;laufes des Gro&amp;szlig;en Flu&amp;szlig;es im Jahre 270 BF
&lt;br&gt;&amp;nbsp; &amp;nbsp; verlegt werden, da die Stadt in der Bedeutungslosigkeit zu versinken
&lt;br&gt;&amp;nbsp; &amp;nbsp; drohte. Heute liegt Ferdok wieder direkt an der Einm&amp;uuml;ndung des
&lt;br&gt;&amp;nbsp; &amp;nbsp; Rakula in den Gro&amp;szlig;en Flu&amp;szlig;. Obwohl &amp;nbsp;die Stadt die
&lt;br&gt;&amp;nbsp; &amp;nbsp; fr&amp;uuml;here Bedeutung l&amp;auml;ngst verloren hat, hat sich Ferdok als
&lt;br&gt;&amp;nbsp; &amp;nbsp; ein wichtiger Handelshafen etabliert (weltber&amp;uuml;hmt: Ferdoker
&lt;br&gt;&amp;nbsp; &amp;nbsp; Bier). Hier werden die Waren von Gareth umgeschlagen, die &amp;uuml;ber
&lt;br&gt;&amp;nbsp; &amp;nbsp; die gro&amp;szlig;e Handelsstra&amp;szlig;e von und nach Ferdok verfrachtet
&lt;br&gt;&amp;nbsp; &amp;nbsp; werden. Ferdok ist damit eines der Tore zum Westen und
&lt;br&gt;&amp;nbsp; &amp;nbsp; erm&amp;ouml;glicht schnelle Reisen in andere Teile der Aventuriens.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Verwaltungstechnisch geh&amp;ouml;rt Ferdok zum F&amp;uuml;rstentum
&lt;br&gt;&amp;nbsp; &amp;nbsp; Kosch, dessen Hauptstadt sie langezeit war. Mittlerweile hat sie
&lt;br&gt;&amp;nbsp; &amp;nbsp; diesen Status jedoch an Angbar verloren. Trotz seiner wichtigen
&lt;br&gt;&amp;nbsp; &amp;nbsp; Rolle als Handelsort sind die Bewohner Ferdoks ein eher biederes
&lt;br&gt;&amp;nbsp; &amp;nbsp; V&amp;ouml;lkchen und h&amp;auml;ngen der Erinnerung an die ruhmreichere
&lt;br&gt;&amp;nbsp; &amp;nbsp; Vergangenheit hinterher. Nachts muss man auf den Stra&amp;szlig;en
&lt;br&gt;&amp;nbsp; &amp;nbsp; neuerdings aufpassen. Zur Handlungszeit verunsichert n&amp;auml;mlich
&lt;br&gt;&amp;nbsp; &amp;nbsp; eine grauenhafte Mordserie die Bewohner Ferdoks und l&amp;auml;sst die
&lt;br&gt;&amp;nbsp; &amp;nbsp; Bev&amp;ouml;lkerung nachts nicht richtig schlafen. Einige Bereiche
&lt;br&gt;&amp;nbsp; &amp;nbsp; sollte man dann grunds&amp;auml;tzlich nicht mehr besuchen, wenn einem
&lt;br&gt;&amp;nbsp; &amp;nbsp; die eigene Gesundheit am Herzen liegt.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Die Stadt wird eine zentrale Anlaufstelle in Drakensang sein,
&lt;br&gt;&amp;nbsp; &amp;nbsp; weswegen sie auch vollst&amp;auml;ndig, nach den Vorgaben des
&lt;br&gt;&amp;nbsp; &amp;nbsp; DSA-Regelwerks in das Spiel eingebaut wird. Der Stadtplan (zum
&lt;br&gt;&amp;nbsp; &amp;nbsp; Vergr&amp;ouml;&amp;szlig;ern anklicken) wurde von Radon Labs dem Regelwerk
&lt;br&gt;&amp;nbsp; &amp;nbsp; direkt entnommen und wird Euch auch f&amp;uuml;r Drakensang gute Dienste
&lt;br&gt;&amp;nbsp; &amp;nbsp; leisten.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;h3 id=&amp;quot;weitere&amp;quot;&amp;gt;Weitere Reiseziele des Spiels&amp;lt;/h3&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;a target=&amp;quot;_blank&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; href=&amp;quot;images/stories/artikel/map.jpg&amp;quot;&amp;gt;{mosimage}&amp;lt;/a&amp;gt; Insgesamt soll
&lt;br&gt;&amp;nbsp; &amp;nbsp; es 12 Hauptregionen geben, die jeweils ca. 1 Quadratkilometer
&lt;br&gt;&amp;nbsp; &amp;nbsp; gro&amp;szlig; sind. Alle diese Regionen unterteilen sich nochmal in
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;uuml;ber 50 kleinere Gebiete. Bekannt sind neben Ferdok bislang:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;ul&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Avestreu (kleines Dorf s&amp;uuml;d&amp;ouml;stl. von Ferdok)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Dunkelwald (s&amp;uuml;dl. von Ferdok)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Ruine Blutberge (s&amp;uuml;dl. von Ferdok, am Rand des
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dunkelwaldes)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Moorbr&amp;uuml;ck (s&amp;uuml;dl. des Dunkelwaldes)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Burg Grimmzahn (westl. von Moorbr&amp;uuml;ck)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Murolosch (eine Zwergenstadt)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;der Berg Drachensang / Drakensang (im Amboss-Gebirge
&lt;br&gt;&amp;nbsp; &amp;nbsp; gelegen)&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/ul&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Ausf&amp;uuml;hrlichere Infos:&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;a title=&amp;quot;Wiki Aventurica&amp;quot; target=&amp;quot;_blank&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; href=&amp;quot;&lt;a href=&quot;http://dsa4.de/wiki&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dsa4.de/wiki&lt;/a&gt;&amp;quot;&amp;gt;Wiki Aventurica &amp;lt;/a&amp;gt;(externer Link)&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;a href=&amp;quot;&lt;a href=&quot;http://www.eychgras.de/koschwiki/index.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.eychgras.de/koschwiki/index.php&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; target=&amp;quot;_blank&amp;quot;&amp;gt;KoschWiki&amp;lt;/a&amp;gt; (externer Link)&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; EOH;
&lt;br&gt;&amp;nbsp; &amp;nbsp; print_r(output($string));
&lt;br&gt;&amp;nbsp; &amp;nbsp; ?&amp;gt;
&lt;br&gt;&lt;br&gt;Please help me. When i delete some code from &amp;lt;ul&amp;gt; to &amp;lt;/div&amp;gt; at the end, 
&lt;br&gt;i get no core dump. only with the full text.
&lt;br&gt;&lt;br&gt;What is the problem??
&lt;br&gt;&lt;br&gt;Greetz Valkum
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-with-utf8_encode-tp22641096p22641096.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22629775</id>
	<title>mb_check_encoding</title>
	<published>2009-03-20T15:10:44Z</published>
	<updated>2009-03-20T15:10:44Z</updated>
	<author>
		<name>Giacomo Mazzocato</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I'm having some problems with mb_check_encoding.
&lt;br&gt;When it's invoked without parameters does it check
&lt;br&gt;all the REQUEST variables to see if their values have the same
&lt;br&gt;encoding
&lt;br&gt;as mb_internal_encoding() ? (This is what I understood from the
&lt;br&gt;manual)
&lt;br&gt;As far as I know that doesn't happen.
&lt;br&gt;Here's an example file :
&lt;br&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;
&lt;br&gt;&amp;quot;&lt;a href=&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;html&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;head&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;Help needed&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/head&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;form action=&amp;quot;?&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;foo&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&amp;quot;submit&amp;quot; &amp;nbsp;value=&amp;quot;submit&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;?php
&lt;br&gt;mb_internal_encoding(&amp;quot;UTF-8&amp;quot;);
&lt;br&gt;var_dump($_REQUEST) ;
&lt;br&gt;echo &amp;quot;&amp;lt;p&amp;gt;&amp;quot; ;
&lt;br&gt;if (mb_check_encoding()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;echo &amp;quot;request encoding ok&amp;quot; ;
&lt;br&gt;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp;echo &amp;quot;request encoding not ok&amp;quot; ;
&lt;br&gt;}
&lt;br&gt;echo &amp;quot;&amp;lt;/p&amp;gt;&amp;quot; ;
&lt;br&gt;?&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/html&amp;gt;
&lt;br&gt;&lt;br&gt;If you post the value from your browser, all is ok because the
&lt;br&gt;encoding of the page is recognized by the browser as utf-8 (I think).
&lt;br&gt;But if I call that page with curl simulating an Invalid encoding
&lt;br&gt;attack,
&lt;br&gt;I get the same result(request encoding ok) while I should get request encoding 
&lt;br&gt;not ok.
&lt;br&gt;Here's the command I used :
&lt;br&gt;curl &amp;nbsp;--data-urlencode &amp;nbsp;$'foo=prov\xef' &amp;nbsp;
&lt;br&gt;&lt;a href=&quot;http://localhost/mine/test/encoding.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/mine/test/encoding.php&lt;/a&gt;&lt;br&gt;Thank you in advance
&lt;br&gt;Bye,
&lt;br&gt;Giacomo
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mb_check_encoding-tp22629775p22629775.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22629821</id>
	<title>mb_check_encoding</title>
	<published>2009-03-20T14:51:52Z</published>
	<updated>2009-03-20T14:51:52Z</updated>
	<author>
		<name>Giacomo Mazzocato</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I'm having some problems with mb_check_encoding.
&lt;br&gt;When it's invoked without parameters does it check
&lt;br&gt;all the REQUEST variables to see if their values have the same
&lt;br&gt;encoding
&lt;br&gt;as mb_internal_encoding() ? (This is what I understood from the
&lt;br&gt;manual)
&lt;br&gt;As far as I know that doesn't happen.
&lt;br&gt;Here's an example file :
&lt;br&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;
&lt;br&gt;&amp;quot;&lt;a href=&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;html&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;head&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;Help needed&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/head&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;form action=&amp;quot;?&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;foo&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&amp;quot;submit&amp;quot; &amp;nbsp;value=&amp;quot;submit&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;?php
&lt;br&gt;mb_internal_encoding(&amp;quot;UTF-8&amp;quot;);
&lt;br&gt;var_dump($_REQUEST) ;
&lt;br&gt;echo &amp;quot;&amp;lt;p&amp;gt;&amp;quot; ;
&lt;br&gt;if (mb_check_encoding()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;echo &amp;quot;request encoding ok&amp;quot; ;
&lt;br&gt;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp;echo &amp;quot;request encoding not ok&amp;quot; ;
&lt;br&gt;}
&lt;br&gt;echo &amp;quot;&amp;lt;/p&amp;gt;&amp;quot; ;
&lt;br&gt;?&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/html&amp;gt;
&lt;br&gt;&lt;br&gt;If you post the value from your browser, all is ok because the
&lt;br&gt;encoding of the page is recognized by the browser as utf-8 (I think).
&lt;br&gt;But if I call that page with curl simulating an Invalid encoding
&lt;br&gt;attack,
&lt;br&gt;I get the same result(request encoding ok).
&lt;br&gt;Here's the command I used :
&lt;br&gt;curl &amp;nbsp;--data-urlencode &amp;nbsp;$'foo=prov\xef' 
&lt;br&gt;&lt;a href=&quot;http://localhost/mine/test/encoding.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/mine/test/encoding.php&lt;/a&gt;&lt;br&gt;Thank you in advance
&lt;br&gt;Bye,
&lt;br&gt;Giacomo
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mb_check_encoding-tp22629821p22629821.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22629824</id>
	<title>mb_check_encoding</title>
	<published>2009-03-20T14:45:43Z</published>
	<updated>2009-03-20T14:45:43Z</updated>
	<author>
		<name>Giacomo Mazzocato</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I'm having some problems with mb_check_encoding.
&lt;br&gt;When it's invoked without parameters does it check
&lt;br&gt;all the REQUEST variables to see if their values have the same
&lt;br&gt;encoding
&lt;br&gt;as mb_internal_encoding() ? (This is what I understood from the
&lt;br&gt;manual)
&lt;br&gt;As far as I know that doesn't happen.
&lt;br&gt;Here's an example file :
&lt;br&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;
&lt;br&gt;&amp;quot;&lt;a href=&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;html&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;head&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;Help needed&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/head&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;form action=&amp;quot;?&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;foo&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;input type=&amp;quot;submit&amp;quot; &amp;nbsp;value=&amp;quot;submit&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/form&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;?php
&lt;br&gt;mb_internal_encoding(&amp;quot;UTF-8&amp;quot;);
&lt;br&gt;var_dump($_REQUEST) ;
&lt;br&gt;echo &amp;quot;&amp;lt;p&amp;gt;&amp;quot; ;
&lt;br&gt;if (mb_check_encoding()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; echo &amp;quot;request encoding ok&amp;quot; ;
&lt;br&gt;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; echo &amp;quot;request encoding not ok&amp;quot; ;
&lt;br&gt;}
&lt;br&gt;echo &amp;quot;&amp;lt;/p&amp;gt;&amp;quot; ;
&lt;br&gt;?&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/html&amp;gt;
&lt;br&gt;&lt;br&gt;If you post the value from your browser, all is ok because the
&lt;br&gt;encoding of the page is recognized by the browser as utf-8 (I think).
&lt;br&gt;But if I call that page with curl simulating an Invalid encoding
&lt;br&gt;attack,
&lt;br&gt;I get the same result(request encoding ok) but I should get request &amp;nbsp;
&lt;br&gt;encoding not ok
&lt;br&gt;Here's the command I used :
&lt;br&gt;curl &amp;nbsp;--data-urlencode &amp;nbsp;$'foo=prov\xef' &amp;nbsp; 
&lt;br&gt;&lt;a href=&quot;http://localhost/mine/test/encoding.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/mine/test/encoding.php&lt;/a&gt;&lt;br&gt;Thank you in advance
&lt;br&gt;Bye,
&lt;br&gt;Giacomo
&lt;br&gt;-- 
&lt;br&gt;Using Opera's revolutionary e-mail client: &lt;a href=&quot;http://www.opera.com/mail/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opera.com/mail/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mb_check_encoding-tp22629824p22629824.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22598513</id>
	<title>The Secret of Making Up - By The Author</title>
	<published>2009-03-19T04:44:04Z</published>
	<updated>2009-03-19T04:44:04Z</updated>
	<author>
		<name>Salome Little</name>
	</author>
	<content type="html">Hello Dear!
&lt;br&gt;&lt;br&gt;My name is T.W. Jackson and I am the author of the most commented relationships book lately &amp;quot;The Magic of Making Up&amp;quot;.
&lt;br&gt;&lt;br&gt;If you have broken up and want to get your guy or girl back, obviously I can't talk too or be with everyone, I just don't have enough time. But I have done what I believe to be the next best thing - I have put my years of experience into a really easy to follow love recipe for &amp;quot;getting back together&amp;quot; and again I forewarn you right now - these are techniques and strategies that are NOT conventional wisdom and I doubt you have ever read or heard these techniques before.
&lt;br&gt;&lt;br&gt;...and I'll tell you that this stuff works! ...maybe too well?
&lt;br&gt;&lt;br&gt;If you want to read and learn more, and you are interested in having my book, just send me a reply to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22598513&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;14842goy.gwenith@...&lt;/a&gt; so I can send you more information.
&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;T. Jackson
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------
&lt;br&gt;This email has been written and proved to be in compliance with the recently established can-spam act law in US. We are not provoking or forcing any person in any way to participate in our programs. To participate is your own decision and you carry the responsibility of taking further part in this promotion. Anyway, if you don't want to receive more good offers from us, you can simply Unsubscribe by sending us a notification email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22598513&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;get.me_out_now@...&lt;/a&gt; with a mail-subject and text &amp;quot;Unsubscribe me&amp;quot;, and we will get your email out of our list within 10 days.
&lt;br&gt;&lt;br&gt;This message is STRICTLY CONFIDENTIAL and is solely for the individual or organisation to whom it is addressed. It may contain PRIVILEGED and CONFIDENTIAL information. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication and its contents is strictly prohibited. If you are not the intended recipient you should not read, copy, distribute, disclose or otherwise use the information in this email. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof or your reliance on any information contained therein if you are not the intended recipient. If you are not interested in the offered promotions, please just don't answer. If you think you have received this message and its contents in error, please delete it from your computer, or follow the unsubscribing procedure shown above.
&lt;br&gt;------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/The-Secret-of-Making-Up---By-The-Author-tp22598513p22598513.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22483686</id>
	<title>Re: Intl String Resource Formats</title>
	<published>2009-03-12T12:24:46Z</published>
	<updated>2009-03-12T12:24:46Z</updated>
	<author>
		<name>Stanislav Malyshev</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;&amp;gt; Since the intl implementation is still some way off, what would you
&lt;br&gt;&amp;gt; recommend to use as a string resource format? Right now we are planning on
&lt;br&gt;&amp;gt; just having files with large php arrays in them (one file per locale) and
&lt;br&gt;&amp;gt; then including the appropriate file at system startup. Is there a better
&lt;br&gt;&amp;gt; way? We can't use the php gettext extension, since it doesn't support the
&lt;br&gt;&amp;gt; Linux gettext's context sensitivity.
&lt;br&gt;&lt;br&gt;You may want to look at Zend Framework implementation of locale data and 
&lt;br&gt;translations here:
&lt;br&gt;&lt;a href=&quot;http://framework.zend.com/manual/en/zend.locale.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://framework.zend.com/manual/en/zend.locale.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://framework.zend.com/manual/en/zend.translate.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://framework.zend.com/manual/en/zend.translate.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Maybe it will fit your purposes.
&lt;br&gt;-- 
&lt;br&gt;Stanislav Malyshev, Zend Software Architect
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22483686&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stas@...&lt;/a&gt; &amp;nbsp; &lt;a href=&quot;http://www.zend.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zend.com/&lt;/a&gt;&lt;br&gt;(408)253-8829 &amp;nbsp; MSN: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22483686&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stas@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Intl-String-Resource-Formats-tp22482239p22483686.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22483319</id>
	<title>Re: Intl String Resource Formats</title>
	<published>2009-03-12T12:00:03Z</published>
	<updated>2009-03-12T12:00:03Z</updated>
	<author>
		<name>jsahleen</name>
	</author>
	<content type="html">Stas and Ed,
&lt;br&gt;&lt;br&gt;Since the intl implementation is still some way off, what would you
&lt;br&gt;recommend to use as a string resource format? Right now we are planning on
&lt;br&gt;just having files with large php arrays in them (one file per locale) and
&lt;br&gt;then including the appropriate file at system startup. Is there a better
&lt;br&gt;way? We can't use the php gettext extension, since it doesn't support the
&lt;br&gt;Linux gettext's context sensitivity.
&lt;br&gt;&lt;br&gt;Any information would be appreciated.
&lt;br&gt;&lt;br&gt;Thanks again.
&lt;br&gt;&lt;br&gt;--Joel Sahleen 
&lt;br&gt;&lt;br&gt;On 3/12/09 12:13 PM, &amp;quot;Stanislav Malyshev&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22483319&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stas@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hi!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; was wondering if anyone could tell me what resource formats (e.g., XLIFF or
&lt;br&gt;&amp;gt;&amp;gt; TMX) the intl extension might someday support. I would also be interested in
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The formatand APIs &amp;nbsp;would probably follow the ones ICU library uses,
&lt;br&gt;&amp;gt; which are described here:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://userguide.icu-project.org/locale/resources&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://userguide.icu-project.org/locale/resources&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://userguide.icu-project.org/icudata&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://userguide.icu-project.org/icudata&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Unicode &amp; I18N Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Intl-String-Resource-Formats-tp22482239p22483319.html" />
</entry>

</feed>
