From ccdb0e332f806b32d41d2035dc5f6214816c5790 Mon Sep 17 00:00:00 2001 From: Jordi Mas Date: Wed, 28 Apr 2021 18:25:28 +0200 Subject: Add encoding page --- help/C/gedit-character-encodings.page | 76 +++++++++++++++++++++++++++++++++++ help/meson.build | 1 + 2 files changed, 77 insertions(+) create mode 100644 help/C/gedit-character-encodings.page diff --git a/help/C/gedit-character-encodings.page b/help/C/gedit-character-encodings.page new file mode 100644 index 000000000..d6d9f2787 --- /dev/null +++ b/help/C/gedit-character-encodings.page @@ -0,0 +1,76 @@ + + + + + + When text and characters do not look as expected. + + + Andre Klapper + ak-47@gmx.net + 2020 + + + Shaun McCance + shaunm@gnome.org + 2009 + + +

Creative Commons Share Alike 3.0

+
+
+ + Dealing with character encoding problems + +
+ Character encodings +

A character encoding is a specific way of recording characters internally + in a computer. There are many character encodings.

+

By default, gedit uses UTF-8, a modern character encoding + that can handle text from most of the world's languages. Another common + encoding for English and some other Western languages is ISO-8859-1.

+
+ +
+ Problems +

If you open a file in a different character encoding than the encoding + in which the file was written, then some or all characters might be displayed + incorrectly.

+ +

This can happen if the file was created on another operating system + or if the file uses a different script.

+
+ +
+ Solutions + +

If the content of a text file does not look as expected, + open the file again by choosing a different + Character Encoding at the bottom of the file chooser dialog.

+ +

If you have an idea which language is used in the document or in the area + of the original author of the document:

+ + +

Select Add or removeā€¦ from the Character Encoding dropdown at the bottom of the file chooser dialog.

+
+ +

Select one or more languages and their encodings under Available Encodings on the left.

+
+ +

Press + to add the selected encodings to the Character Encoding dropdown.

+
+ +

Close the dialog by pressing Apply.

+
+
+ +

If none of these solutions solve the problem, then you + could try to edit the file anyway. It is recommended to first create a backup + copy of your file.

+ +
+
diff --git a/help/meson.build b/help/meson.build index f298186c7..d7ff4aa7a 100644 --- a/help/meson.build +++ b/help/meson.build @@ -4,6 +4,7 @@ gedit_help_sources = [ 'gedit-close-file.page', 'gedit-create-new-file.page', 'gedit-edit-as-root.page', + 'gedit-character-encodings.page', 'gedit-files-basic.page', 'gedit-full-screen.page', 'gedit-open-files-from-sidepane.page', -- cgit v1.2.1