Closed phong-nt-990 closed 1 year ago
That seems to be a limitation of the Windows API as that's exactly what we get. I know that Windows is entirely localized and encoded based on the device settings so we won't be able to do much to control that.
[DEBUG] 00:22:59.134 shell.go:RunCommand:587 ↓
"Spotify.exe","25832","Console","1","117,016 K","Running","M4PL3-DESKTOP\maple","0:00:57","Vicky Nhung - Vi?t Nam Nh?ng Chuy?n Di"
Had a look, not much we can do as this is a Windows encoding issue.
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
Using ohmyposh with spotify api to display song titles, in WSL, cannot display utf-8 characters.
Theme
...
{ "foreground": "#ff20b5", "properties": { "paused_icon": "\uf04c ", "playing_icon": "\ue602 ", "stopped_icon": "\uf04d ", "track_separator": " - " }, "style": "plain", "template": " \uf1bc {{ .Icon}}{{ if ne .Status \"stopped\" }}{{ .Track }}{{ end }} ", "type": "spotify" }, ...
What OS are you seeing the problem on?
Windows
Which shell are you using?
bash
Log output