Display utf8 character on debugger?

What is the settting for display utf8 character on debugger?
I saw only  square box for variable that supposed to show Chinese characters.

Thanks!

Chiiwen

8 comments

Hi there,

I'm not sure about this .. but check what you have at "Settings | File Encodings | IDE Encoding" -- set it to UTF-8 if different (restart of PhpStorm most likely will be required as well).

0

Using this simple stupid script (which makes no real sense -- it's for illustration purposes only) ... it seems to work OK for me with IDE Encoding set to UTF-8 (PHP file itself has UTF-8 encoding as well)

screen01.png
P.S.
I'm on Windows 7 x64 SP1 ENG.

Chinese text was taken from footer of some website.

0

Andriy,

Thanks for your help.
Here is my result.
1..png
I must miss something. Here is my setting.
2.png

My system: Win 7 X64 SP1  Eng.

Thanks!

Chiiwen

0

TBH -- don't know why it does not work for you -- must be some system settings.


1) Maybe it is actual font issue? I doubt, since you said you are using English Windows 7 .. but just try changing IDE font used for GUI part (Settings | Appearance | Override default fonts by..)

BTW -- is output in Console tab is fine ..or it is squares/garbage as well?

2) PHP's own default_charset settings (from php.ini)? I have mine left at default (means: no specific value at all -- whole is commented out): http://uk3.php.net/manual/en/ini.core.php#ini.default-charset

3) Java/System default locale/codepage? Unfortunately I do not know how to force specific one for Java (that's in case if yours is not English at all; mine is UK English) and if it will matter at all in this particular instance.

4) Outdated xdebug? Currently I'm using latest 2.2.2 (on Windows; PHP 5.4.14; IIS 7.5).


You may collect debugger logs (both from PhpStorm side as well as xdebug side) and see what they are transmitting -- at least you should be able to see if the issue is on xdebug/remote side or PhpStorm own bug.


Other than that -- no real ideas. Maybe worth submitting a ticket directly to the Issue Tracker -- devs should know better what else may affect this.

0

Andriy,

Thanks! Solve the problem by changing IDE font used for GUI part.

Best Regards,

Chiiwen

0

Andriy,
     What font do you use for GUI part?

Thanks!

Chiiwen

0

Don't know -- default one.

Maybe it depends on Theme used (previously known as "Look and Feel")? I'm using "Windows"

screen01.png

0

Andriy,

I modified Theme from "Alloy. IDEA Theme" to  "window".
It works (My previous fix is choose Chinese fonts).

Thanks!

Chiiwen

0

Please sign in to leave a comment.