MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001398XdebugInstallationpublic2017-02-13 22:092017-02-14 11:25
Reporterihorsl 
Assigned Toderick 
PrioritylowSeverityminorReproducibilityalways
StatusresolvedResolutionno change required 
PlatformLinuxOSDebianOS Version8.6
Product Version2.3.3 
Target VersionFixed in Version 
Summary0001398: Can't get utf-8 locale
DescriptionI 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=

TagsNo tags attached.
Operating System
PHP Version5.6.30-5.6.35
Attached Files

- Relationships

-  Notes
(0004217)
derick (administrator)
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 [^]

- Issue History
Date Modified Username Field Change
2017-02-13 22:09 ihorsl New Issue
2017-02-14 11:25 derick Note Added: 0004217
2017-02-14 11:25 derick Status new => resolved
2017-02-14 11:25 derick Resolution open => no change required
2017-02-14 11:25 derick Assigned To => derick


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker