Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Generate text file does not supports UTF-8 #105

Closed
emanjon opened this issue Aug 3, 2022 · 7 comments
Closed

Generate text file does not supports UTF-8 #105

emanjon opened this issue Aug 3, 2022 · 7 comments

Comments

@emanjon
Copy link

emanjon commented Aug 3, 2022

Generate HTML supports UTF-8. Generate text file does not supports UTF-8. My name is generated as "Preu� Mattsson". I feel discriminated. Why is anything else than UTF-8 even allowed?

John Preuß Mattsson

@kesara
Copy link
Member

kesara commented Aug 3, 2022

@emanjon Can you provide an example draft?

@kesara
Copy link
Member

kesara commented Aug 3, 2022

There was a similar issue in #14 where that seems to be the browser is trying to use the wrong charset.

Did you try to open the text document from a different editor?

Also, what's the browser/editor that you are using?

@emanjon
Copy link
Author

emanjon commented Aug 3, 2022

Thank for the quick response. Yes, this seems very similar to #14. It does depend on the browser used.

The official xml for RFC 9190 is a good example (i.e., it does not depend on my editor).
https://www.rfc-editor.org/rfc/rfc9190.xml

  • The compilation to text does not produce the correct non-ASCII characters when using Safari Version 15.6 (17613.3.9.1.5) on MacOS Montery Version 12.5.
  • The compilation to html does produce the correct non-ASCII characters when using Safari Version 15.6 (17613.3.9.1.5) on MacOS Montery Version 12.5.
  • The compilation to text and html does produce the correct non-ASCII characters when using Firefox 103.0 (64-bit) on MacOS Montery Version 12.5.

So the problem is either in the Safari browser or the code for https://author-tools.ietf.org.

@kesara
Copy link
Member

kesara commented Aug 3, 2022

Thanks for the information. I can reproduce the issue in Safari 15.6.
It turns out that the default encoding in Safari is Windows (ISO Latin 1).
If you change the default encoding to Unicode (UTF-8) text displays fine.

You can change this from "Preferences -> Advanced":
Screen Shot 2022-08-04 at 12 25 57 AM

I'll investigate if there's anything more that I could do from author tools side to make this work better on Safari.

@emanjon
Copy link
Author

emanjon commented Aug 3, 2022

Thanks!

default encoding in Safari is Windows (ISO Latin 1)

🤦‍♀️

I'll investigate if there's anything more that I could do from author tools side to make this work better on Safari.

As generating HTML with Safari works without changing the default encoding I would expect that it is possible to make it work better.

@kesara
Copy link
Member

kesara commented Aug 3, 2022

As generating HTML with Safari works without changing the default encoding I would expect that it is possible to make it work better.

It is easier with HTML because charset can be defined in meta.

@kesara
Copy link
Member

kesara commented Jan 10, 2024

Closing this issue as this repository is being archived.
Report new issues and feature requests to https://github.com/ietf-tools/ietf-at

@kesara kesara closed this as completed Jan 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants