A
A
Andrey Matsovkin2012-07-06 02:32:45
PHP
Andrey Matsovkin, 2012-07-06 02:32:45

How can I configure XDebug and Eclipse IDE to correctly display UTF-8 characters in expressions and variables?

Basically everything is set. UTF-8 is specified everywhere. XDebug works, breakpoints are triggered, viewing the values ​​of variables and expressions works. But there is one caveat ...

When creating array keys with Russian characters, in the expressions view window ("Expressions"), the keys are displayed by everyone with a familiar mess ("Ð ÑƒÑ Ñ ÐºÐ¸Ð¹") similar to when we look at a UTF-8 string in the wrong encoding (for example in win1251).

image

In this case, the values ​​of the keys are displayed normally (in the correct encoding).

In the "PHP Debug" section, both encodings are in UTF-8.
The file code itself is in UTF-8.
In php.ini default_charset = "utf-8"

What and where else needs to be "tweaked" - broke his head.

If you have any ideas please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
Qualab, 2012-07-06
@Qualab

PyDev has the same problem with Eclipse debug. But everything crashes there when you try to view the value of a variable with a Cyrillic name. Even quick watch on a Cyrillic variable causes an error. In general, it's messed up in Eclipse with UTF-8.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question