MantisBT - Xdebug
View Issue Details
0001398XdebugInstallationpublic2017-02-13 22:092017-02-14 11:25
ihorsl 
derick 
lowminoralways
resolvedno change required 
LinuxDebian8.6
2.3.3 
 
5.6.30-5.6.35
0001398: Can't get utf-8 locale
I have set up xdebug twice

First time from Debian binary package php5-xdebug 2.2.5-1
Then compiled from sources version 2.3.3

XDebug works both times

But I have problem with setting up UTF-8 LOCALE both times

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

Xdebug Simple DBGp client (0.10.0)
Copyright 2002-2007 by Derick Rethans.

Waiting for debug server to connect.
Connect
<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" [^] fileuri="file:///mnt/vmware/Z_HOME/Work/softdevel/2017/local-kidsale_ru/local_html/index.php" [^] language="PHP" protocol_version="1.0" appid="3952" idekey="PHPSTORM"><engine version="2.3.3"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org [^]]]></url><copyright><![CDATA[Copyright (c) 2002-2015 by Derick Rethans]]></copyright></init>
(cmd) feature_set -i transaction_id -n encoding -v utf-8
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" [^] command="feature_set" transaction_id="transaction_id" status="starting" reason="ok"><error code="900"><message><![CDATA[encoding not supported]]></message></error></response>
(cmd) feature_set -i transaction_id -n encoding -v UFT-8
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" [^] command="feature_set" transaction_id="transaction_id" status="starting" reason="ok"><error code="900"><message><![CDATA[encoding not supported]]></message></error></response>
(cmd)

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

Here is my locale :

#locale
LANG=uk_UA.UTF-8
LANGUAGE=
LC_CTYPE="uk_UA.UTF-8"
LC_NUMERIC="uk_UA.UTF-8"
LC_TIME="uk_UA.UTF-8"
LC_COLLATE="uk_UA.UTF-8"
LC_MONETARY="uk_UA.UTF-8"
LC_MESSAGES="uk_UA.UTF-8"
LC_PAPER="uk_UA.UTF-8"
LC_NAME="uk_UA.UTF-8"
LC_ADDRESS="uk_UA.UTF-8"
LC_TELEPHONE="uk_UA.UTF-8"
LC_MEASUREMENT="uk_UA.UTF-8"
LC_IDENTIFICATION="uk_UA.UTF-8"
LC_ALL=

No tags attached.
Issue History
2017-02-13 22:09ihorslNew Issue
2017-02-14 11:25derickNote Added: 0004217
2017-02-14 11:25derickStatusnew => resolved
2017-02-14 11:25derickResolutionopen => no change required
2017-02-14 11:25derickAssigned To => derick

Notes
(0004217)
derick   
2017-02-14 11:25   
Xdebug only supports iso-8859-1 (or rather, just binary): https://github.com/xdebug/xdebug/blob/master/xdebug_handler_dbgp.c#L1224 [^]

You can query for which encodings are supported with the "supported_encodings" feature, which is documented in the 2nd table at https://xdebug.org/docs-dbgp.php#feature-names [^]