How do I force writer to save in ANSI

I am trying to use odfWeave in north america. When I enter R formulas in the writer, sometimes it seems to convert the detault character set to UTF-8 which causes the odfWeave software to fail with locale conflicts because I amk not in an UTF-8 locale. The locale problem also occurs if I insert text in the template and use the default bullet formatting,

By ANSI, do you mean US-ASCII? This is contained in the first 127 characters of Unicode (UTF-8), ISO 8859-1 the first 255. So if you restrict yourself to those characters, you have the equivalent character sets.

You have not said which version of LibO you are using, the language, locale and operating system. These would be helpful. I assume you are using English (USA)

However, ODF in this case LibO writer, uses Unicode (UTF-8), which supports all languages. All languages supported by LibO are consequently supported. The locale is used by LibO to manage defaults like the character set and spelling.

What locale conflicts are you having, with LibO or odfWeave? If it is using ODF, I would expect the software to use Unicode (UTF-8). Of course I may have misunderstood your problem… Peter

=========

I understand now that ANSI is a Microsoft term for a set of Character sets and is not an actual standard. I assume that the version you are requested is the old Windows-1252 as used in America. This is used in Windows to support legacy systems. I quote from Wikipedia, “The term ANSI as used to signify Windows code pages is a historical reference, but is nowadays a misnomer that continues to persist in the Windows community” . I realise that this does not help your problem but may give you some extra background. What do the odfWeave people say?..Peter

There are evidently known challenges with getting odfWeave to recognise UTF-8. The solution under GNU/Linux is to set/pass an environment variable. Under Windows it is not so simple, which is probably why ANSI input is being requested.