Swedish characters in Debug Consol

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Swedish characters in Debug Consol

Postby easec » September 30th, 2016, 9:14 am

Hi there!

When I run Start without Debugging or Start Debugging, Visual Studio 2015 + PHP Tools, console does not show any swedish characters.

http://course.easec.se/error.png

I have tried Visual C# code with no problems.

My php.ini file has UTF-8, default_charset = "UTF-8".

I have tried put in header("Content-type: text/html; charset=utf-8"); in my code, with no success.

Any suggestions?

Added: My Visual Studio is configured to use language settings from Windows and has language pack installed.

/Mats
easec
 
Posts: 1
Joined: September 30th, 2016, 9:03 am

Re: Swedish characters in Debug Consol

Postby Jakub Misek » December 2nd, 2016, 10:23 am

Hi,

Unfortunately it seams PHP does not respect character encoding when using console output. There are many discussions on this topic like http://stackoverflow.com/questions/1964 ... in-php-cli
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 58 guests

cron

User Control Panel

Login

Who is online

In total there are 58 users online :: 0 registered, 0 hidden and 58 guests (based on users active over the past 5 minutes)
Most users ever online was 439 on April 25th, 2024, 10:49 am

Users browsing this forum: No registered users and 58 guests