I have an app that has the option to export a .txt-file with some data that can be imported to another application. This file needs the utf-8 BOM marker applied so the æ, ø and å-characters in the norwegian alphabet get properly imported into the other application.
It’s not a problem to use the ‘utf-8-sig’-entry in python, so is there a way to solve this in Anvil?
Current error:
LookupError: unknown encoding: utf-8-sig
Then that is the problem: you Mr one of the limitation of the client side python.
The rule of thumb is that, if you need a round trip, you should do as much as you can on the server side and return the final product to the client. Then the client should take care of the ui and as little logic as possible.
Thank you, stucork, It’s nice to know it is actually possible on the client side.
But as I already mentioned, I moved it server-side so it’s not an issue anymore.
I also changed it to export the data in Excel-format as I read adding BOM-markers should be avoided due to compatibility-issues.