UnrefinedBrain / vue-upgrade-tool

Automatically upgrade Vue 2 projects to Vue 3
MIT License
37 stars 1 forks source link

vue_upgrade_output encoding problem #1

Closed Pholith closed 1 month ago

Pholith commented 3 months ago

Hello, The tool generated for my project an unreadable output. The file looks like this when opened with VSCode with UTF16-LE (guessed by VS)


ÔòöÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòñÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòÉÔòù
Ôòæ Codemod name              Ôöé Count Ôòæ
ÔòƒÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔö╝ÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔòó
Ôòæ vue-set                   Ôöé 0     Ôòæ
ÔòƒÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔö╝ÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔòó
Ôòæ vue-delete                Ôöé 0     Ôòæ```
UnrefinedBrain commented 3 months ago

Try using utf-8, or whatever encoding your terminal uses when piping stdout to a file