info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-ASCII string must be encoded in advance. user-full-name


From: Maximilian Matthé
Subject: Re: Non-ASCII string must be encoded in advance. user-full-name
Date: Sun, 09 Jan 2011 20:16:39 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

> Maxi.Matthe@googlemail.com (Maximilian Matthé) writes:
>
>> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>>
>>> Maximilian Matthe <Maxi.Matthe@googlemail.com> writes:
>>>
>>>> Hi,
>>>>
>>>> I have the following issue. I have this in my .gnus.el:
>>>>  
>>>> ,----
>>>> | (setq user-full-name "Maximilian Matthé")
>>>> `----
>>>>
>>>> Everytime I want to copy sth to the x-clipboard, emacs tells me:
>>>>
>>>> ,----
>>>> | Non-ASCII string must be encoded in advance: "Maximilian Matthé"
>>>> `----
>>>>
>>>> In the message line. If I change my name to "Matthe" that does not
>>>> happen.
>>>>
>>>> - my .gnus.el is saved in iso-8859-15 coding system. My default system
>>>>   locale is de_DE.utf-8.
>>> If you have a buffer-local config (e.g coding: iso-8859-15), remove it,
>>> utf-8 will be used instead.
>>>
>>
>> I have tried saving it in utf-8 before of course, (without any
>> buffer-local config and also with), but it produced the same error. I
>> tried saving in iso-8859-15 because the é would only have one byte then
>> instead of 2 in utf-8.
> What do you mean by saving it in utf-8?, what are you doing exactly?
C-x RET f and then choose utf-8 or iso-8859 for saving.
>
> You should save your files with no coding setting, emacs handle that
> very well.(it should save to utf-8-emacs)

Here's the output of M-x describe-coding-system:

,----
| Coding system for saving this buffer:
|   U -- utf-8-unix (alias: mule-utf-8-unix)
| 
| Default coding system (for new files):
|   U -- utf-8 (alias: mule-utf-8)
| 
| Coding system for keyboard input:
|   = -- no-conversion (alias: binary)
| 
| Coding system for terminal output:
|   nil
| Coding system for inter-client cut and paste:
|   nil
| Defaults for subprocess I/O:
|   decoding: U -- utf-8-unix (alias: mule-utf-8-unix)
| 
|   encoding: U -- utf-8-unix (alias: mule-utf-8-unix)
| 
| 
| Priority order for recognizing coding systems when reading files:
|   1. utf-8 (alias: mule-utf-8)
|   2. iso-latin-1 (alias: iso-8859-1 latin-1)
|   3. iso-2022-7bit 
|   4. iso-2022-7bit-lock (alias: iso-2022-int-1)
|   5. iso-2022-8bit-ss2 
|   6. emacs-mule 
|   7. raw-text 
|   8. iso-2022-jp (alias: junet)
|   9. in-is13194-devanagari (alias: devanagari)
|   10. chinese-iso-8bit (alias: cn-gb-2312 euc-china euc-cn cn-gb gb2312)
|   11. utf-8-auto 
|   12. utf-8-with-signature 
|   13. utf-16 
|   14. utf-16be-with-signature (alias: utf-16-be)
|   15. utf-16le-with-signature (alias: utf-16-le)
|   16. utf-16be 
|   17. utf-16le 
|   18. japanese-shift-jis (alias: shift_jis sjis)
|   19. chinese-big5 (alias: big5 cn-big5 cp950)
|   20. undecided 
`----


>
> After saving your file with no coding settings, erase the "é" and rewrite
> it, then save again your file, kill buffer, reopen the file, 
> maybe that will solve your problem.

I tried it, but the problem remains.

>
> If your locale is now *utf-8 you should not use anymore iso-*.
It was just to try wether it would work. In general I do not change
coding systems etc.
>
> Try also to move cursor on é in your .gnus.el and use describe-char.
>
Here's the result:
,----
|         character: é (233, #o351, #xe9)
| preferred charset: iso-8859-1 (Latin-1 (ISO/IEC 8859-1))
|        code point: 0xE9
|            syntax: w  which means: word
|          category: .:Base, c:Chinese, j:Japanese, l:Latin, v:Viet
|       buffer code: #xC3 #xA9
|         file code: #xC3 #xA9 (encoded by coding system utf-8-unix)
|           display: by this font (glyph code)
|     xft:-unknown-DejaVu Sans 
Mono-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#xAB)
| 
| Character code properties: customize what to show
|   name: LATIN SMALL LETTER E WITH ACUTE
|   old-name: LATIN SMALL LETTER E ACUTE
|   general-category: Ll (Letter, Lowercase)
|   decomposition: (101 769) ('e' '́')
| 
| There are text properties here:
|   face                 font-lock-string-face
|   fontified            t
`----
I'm a bit confused it says, the preferred charset would be the
iso-... . How can that be? And how would I change that? I have in my
.emacs:
,----
| (prefer-coding-system 'utf-8)
`----

Thanks for your help,
Max




reply via email to

[Prev in Thread] Current Thread [Next in Thread]