I'm using a Template tool https://github.com/noahmorrison/chevron (Mustache Impl)
My issue is that when I run it on powershell and I try to save the result to a file doing:
chevron C:\templates\db.mustache -d C:\temp\db\dev.json | ConvertTo-Xml > .\Process.xml
Note the function prompts an XML
I get the error:
Traceback (most recent call last):
File "c:\users\kevin.haunstetter\appdata\local\programs\python\python38-32\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\kevin.haunstetter\appdata\local\programs\python\python38-32\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\kevin.haunstetter\AppData\Local\Programs\Python\Python38-32\Scripts\chevron.exe\__main__.py", line 7, in <module>
File "c:\users\kevin.haunstetter\appdata\local\programs\python\python38-32\lib\site-packages\chevron\main.py", line 84, in cli_main
sys.stdout.write(main(**args))
File "c:\users\kevin.haunstetter\appdata\local\programs\python\python38-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\ufeff' in position 0: character maps to <undefined>
Any idea?