ladybug icon indicating copy to clipboard operation
ladybug copied to clipboard

problem character for windows console

Open flip111 opened this issue 10 years ago • 0 comments

┬À this gets printed in a windows console instead of · for https://github.com/raulfraile/ladybug/blob/master/src/Ladybug/Theme/Simple/SimpleTheme.php

Fix: '<f_tab> '.chr(250).' </f_tab>'

Related: http://stackoverflow.com/questions/388490/unicode-characters-in-windows-command-line-how

Note there are serious implementation bugs in Windows's code page 65001 support which will break many applications that rely on the C standard library IO methods, so this is very fragile. (Batch files also just stop working in 65001.) Unfortunately UTF-8 is a second-class citizen in Windows.

flip111 avatar Jan 08 '15 14:01 flip111