unicode encoding
I need to create a text file with a Russian/Greek character set included in it.
This is food food labelling to meet EU standards
I was able to paste the following text into notepad. When I went to save it is said it couldn't be saved in ASCII format, but could be saved in Unicode format.
I did this and was able to use Bartender to pick up the text and print it correctly.
Golden Sultanas 100g e|Sultanas d’or - Gouden Sultana's - Gyldne Sultanas - Sultana dorata - |Золотой Султанас - Złote Sułtanki - Gylne sultanaer - Gyllene Sultanas|187Kj/44Kcal|0.1g
I need to be able to create this file from a synergy.net application and write the foreign character set text string to it.
Or I could write a C# class and included it in my synergy./net solution
Or maybe there is another way I haven;t thought of?
Any done any multi-lingual food labelling in bartender, using text files created by a synergy application ?
import System.IO import System.Text main proc ;Read a UTF-8 file into a string data text = File.ReadAllText("D:\UTF8InputFile.txt",Encoding.Utf8) ;;Write a string with UTF-8 data to a UTF-8 file File.WriteAllText("D:\UTF8OutputFile.txt", text, Encoding.UTF8) endmain