Accents with po-mode

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Accents with po-mode

MENGUAL Jean-Philippe
Hi,

In PO mode, when I enter an accent (é è), when I end my typing (ctrl-c
c), it is converted into \x0153 or other kind of code. AN idea why? My
po file is utf8.

Thanks for your help

Regards

--
signature_jp_2
Logo Hypra JEAN-PHILIPPE MENGUAL
DIRECTEUR TECHNIQUE ET QUALITÉ
102, rue des poissonniers, 75018, Paris
Tel : +331 84 73 06 61 <tel:+33184730661> Mob : +336 76 34 93 37
<tel:+33676349337>
[hidden email] <mailto:[hidden email]>
www.hypra.fr <http://www.hypra.fr/>
Facebook Hypra <https://www.facebook.com/hyprasoftware/> Twitter Hypra
<https://twitter.com/Hypra_> Linkedin Jean-Philippe
<https://fr.linkedin.com/in/jean-philippe-mengual-800133135>


Reply | Threaded
Open this post in threaded view
|

Re: Accents with po-mode

Robert Pluim
>>>>> On Thu, 16 Jan 2020 08:49:16 +0100, MENGUAL Jean-Philippe <[hidden email]> said:

    Jean-Philippe> Hi,
    Jean-Philippe> In PO mode, when I enter an accent (é è), when I end my typing (ctrl-c
    Jean-Philippe> c), it is converted into \x0153 or other kind of code. AN idea why? My
    Jean-Philippe> po file is utf8.

Which version of emacs is this? Also, how are you entering the
accents? I guess not with an emacs input method, since those donʼt
require C-c c.

You could try one of the many emacs input methods, eg

C-u C-\ french-prefix RET

lets you enter é by typing 'e

Robert

Reply | Threaded
Open this post in threaded view
|

Re: Accents with po-mode

MENGUAL Jean-Philippe
oh marevelous! That is it! Many thanks! I did not think the content of
the PO file could have a consequence about the buffer behavior in Emacs.
The problem is now fixed, many thanks!

Best regards


Logo Hypra JEAN-PHILIPPE MENGUAL
DIRECTEUR TECHNIQUE ET QUALITÉ
102, rue des poissonniers, 75018, Paris
Tel : +331 84 73 06 61 <tel:+33184730661> Mob : +336 76 34 93 37
<tel:+33676349337>
[hidden email] <mailto:[hidden email]>
www.hypra.fr <http://www.hypra.fr/>
Facebook Hypra <https://www.facebook.com/hyprasoftware/> Twitter Hypra
<https://twitter.com/Hypra_> Linkedin Jean-Philippe
<https://fr.linkedin.com/in/jean-philippe-mengual-800133135>



Le 18/01/2020 à 16:43, Eli Zaretskii a écrit :

>> Date: Sat, 18 Jan 2020 17:33:56 +0200
>> From: Eli Zaretskii <[hidden email]>
>>
>>> From: MENGUAL Jean-Philippe <[hidden email]>
>>> Date: Sat, 18 Jan 2020 16:18:11 +0100
>>>
>>>>> Char: é (233, #o351, #xe9, file ...) point=3 of 2140 (0%) column=2
>>>>
>>>> So Emacs shows the correct character in the buffer popped up by
>>>> "C-u C-x =", but it shows \351 for the same character in the buffer
>>>> where you edit the PO file?
>>>
>>> Indeed
>>
>> Interesting
>
> Actually, I think I know what happens: the buffer in which you edit
> the PO file is a unibyte buffer.
>
> So I suggest to replace CHARSET in this line:
>
>    "Content-Type: text/plain; charset=CHARSET\n"
>
> with
>
>    "Content-Type: text/plain; charset=UTF-8\n"
>
> then save the buffer and visit the file again.  Now these problems
> should go away.
>
>