jwikman / nab-al-tools

The code repository for NAB AL Tools, an AL tool for VS Code
https://marketplace.visualstudio.com/items?itemName=nabsolutions.nab-al-tools
MIT License
19 stars 7 forks source link

Refresh files from g.xlf failed with error: Unexpected token '�', "��{ #450

Closed mstjernfelt closed 9 months ago

mstjernfelt commented 9 months ago

Describe the bug In a fresh project when I run "nab.RefreshXlfFilesFromGXlf" I get this error

image

Translation file generated by the compiler.

Translation.g.txt

Versions used VSCode: Version: 1.86.1 (user setup) Commit: 31c37ee8f63491495ac49e43b8544550fbae4533 Date: 2024-02-07T09:08:20.941Z Electron: 27.2.3 ElectronBuildId: 26495564 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Windows_NT x64 10.0.22631

NAB AL Tools: v1.32.0

To Reproduce Steps to reproduce the behavior:

Expected behavior I want my SLP.sv-SE.xlf file to be updated with translations.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Happens all the time in this project

mstjernfelt commented 9 months ago

You can close this, problem was that my app.json was encoded using UTF-16 for some reason. Changed it to UTF-8 and now it works :)