nepnep39 / neofetch-win

Simple, ultra-lightweight neofetch clone for Windows 10+ written in C++
MIT License
139 stars 10 forks source link

Accents in username are not displayed correctly #12

Closed johnlaff closed 11 months ago

johnlaff commented 1 year ago

Even with the $OutputEncoding set to UTF-8, my username is not displayed correctly, as it has the character "ã" and this, when displayed, is replaced by the symbol "?"

neofetch
llllllllllllllll   llllllllllllllll            Jo�o Ferreira@JOHN-G15
llllllllllllllll   llllllllllllllll            --------------
llllllllllllllll   llllllllllllllll            OS: Windows 11
llllllllllllllll   llllllllllllllll            Build: 22H2 (22621)
llllllllllllllll   llllllllllllllll            Uptime: 0 days, 10 hours, 44 minutes
llllllllllllllll   llllllllllllllll            Resolution: 1920x1080 @144Hz
llllllllllllllll   llllllllllllllll            Terminal: João Ferreira @ John-G15
llllllllllllllll   llllllllllllllll            CPU: 13th Gen Intel(R) Core(TM) i5-13450HX
llllllllllllllll   llllllllllllllll            GPU: NVIDIA GeForce RTX 3050 6GB Laptop GPU
                                               Memory: 11234 MB / 24260 MB (46% in use)
llllllllllllllll   llllllllllllllll            Disk: C:\ 243.4 GB (127.41 GB free)
llllllllllllllll   llllllllllllllll
llllllllllllllll   llllllllllllllll            Mem%:  -=[ //////////////////// ]=-
llllllllllllllll   llllllllllllllll
llllllllllllllll   llllllllllllllll            Disk%: -=[ //////////////////// ]=-
llllllllllllllll   llllllllllllllll
llllllllllllllll   llllllllllllllll
llllllllllllllll   llllllllllllllll
llllllllllllllll   llllllllllllllll

$OutputEncoding
Preamble          :
BodyName          : utf-8
EncodingName      : Unicode (UTF-8)
HeaderName        : utf-8
WebName           : utf-8
WindowsCodePage   : 1200
IsBrowserDisplay  : True
IsBrowserSave     : True
IsMailNewsDisplay : True
IsMailNewsSave    : True
IsSingleByte      : False
EncoderFallback   : System.Text.EncoderReplacementFallback
DecoderFallback   : System.Text.DecoderReplacementFallback
IsReadOnly        : True
CodePage          : 65001
nepnep39 commented 12 months ago

ill take a look

nepnep39 commented 11 months ago

sorry, meant to get back to you sooner I couldn't seem to fix this across every terminal neofetch-win can run on (registry doesnt seem to like UTF-8) without breaking other things, and since this is such a common issue with so many other windows programs that seems to not be worth looking into, I have decided not to fix it, sorry.