* Special characters (PHP)
@ 2007-12-02 13:30 Defacta
2007-12-02 14:09 ` Lennart Borgman (gmail)
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Defacta @ 2007-12-02 13:30 UTC (permalink / raw)
To: help-gnu-emacs
Hi !
When I code using php-mode the result of special characters are for
example:
"Se d�connecter" instead of "Se déconnecter".
Do you know what I should do to be able to use emacs with special
characters not to have to use stuff like: "é" for the "é"
Thanks,
Vincent.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Special characters (PHP)
2007-12-02 13:30 Special characters (PHP) Defacta
@ 2007-12-02 14:09 ` Lennart Borgman (gmail)
2007-12-02 15:40 ` Magnus Henoch
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2007-12-02 14:09 UTC (permalink / raw)
To: Defacta; +Cc: help-gnu-emacs
Defacta wrote:
> Hi !
>
> When I code using php-mode the result of special characters are for
> example:
> "Se d�connecter" instead of "Se déconnecter".
>
> Do you know what I should do to be able to use emacs with special
> characters not to have to use stuff like: "é" for the "é"
>
> Thanks,
> Vincent.
There are several ways to take care of this I believe. One is using some
derivative of nxml-mode when editing php files. See nXhtml for one.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Special characters (PHP)
2007-12-02 13:30 Special characters (PHP) Defacta
2007-12-02 14:09 ` Lennart Borgman (gmail)
@ 2007-12-02 15:40 ` Magnus Henoch
[not found] ` <mailman.4414.1196604563.18990.help-gnu-emacs@gnu.org>
[not found] ` <mailman.4416.1196610081.18990.help-gnu-emacs@gnu.org>
3 siblings, 0 replies; 7+ messages in thread
From: Magnus Henoch @ 2007-12-02 15:40 UTC (permalink / raw)
To: help-gnu-emacs
Defacta <vincent.marguerit@gmail.com> writes:
> When I code using php-mode the result of special characters are for
> example:
> "Se d�connecter" instead of "Se déconnecter".
>
> Do you know what I should do to be able to use emacs with special
> characters not to have to use stuff like: "é" for the "é"
I suspect that there is a mismatch between the encoding of the file and
the encoding that the web server expects.
Try C-x C-m f (set-buffer-file-coding-system). Enter either latin-1 or
utf-8; then save and see if it works. (I suspect that latin-1 is the
right choice)
Magnus
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <mailman.4414.1196604563.18990.help-gnu-emacs@gnu.org>]
* Re: Special characters (PHP)
[not found] ` <mailman.4414.1196604563.18990.help-gnu-emacs@gnu.org>
@ 2007-12-02 15:54 ` Defacta
2007-12-02 16:51 ` Lennart Borgman (gmail)
2007-12-03 3:29 ` Stefan Monnier
0 siblings, 2 replies; 7+ messages in thread
From: Defacta @ 2007-12-02 15:54 UTC (permalink / raw)
To: help-gnu-emacs
On 2 déc, 15:09, "Lennart Borgman (gmail)" <lennart.borg...@gmail.com>
wrote:
> Defacta wrote:
> > Hi !
>
> > When I code using php-mode the result of special characters are for
> > example:
> > "Se d�connecter" instead of "Se déconnecter".
>
> > Do you know what I should do to be able to use emacs with special
> > characters not to have to use stuff like: "é" for the "é"
>
> > Thanks,
> > Vincent.
>
> There are several ways to take care of this I believe. One is using some
> derivative of nxml-mode when editing php files. See nXhtml for one.
Actually, in the html tag there is:
charset=UTF-8
How can I set UFT-8 as charset in Emacs ?
Thanks,
Vincent.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Special characters (PHP)
2007-12-02 15:54 ` Defacta
@ 2007-12-02 16:51 ` Lennart Borgman (gmail)
2007-12-03 3:29 ` Stefan Monnier
1 sibling, 0 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2007-12-02 16:51 UTC (permalink / raw)
To: Defacta; +Cc: help-gnu-emacs
Defacta wrote:
> On 2 déc, 15:09, "Lennart Borgman (gmail)" <lennart.borg...@gmail.com>
> wrote:
>> Defacta wrote:
>>> Hi !
>>> When I code using php-mode the result of special characters are for
>>> example:
>>> "Se d�connecter" instead of "Se déconnecter".
>>> Do you know what I should do to be able to use emacs with special
>>> characters not to have to use stuff like: "é" for the "é"
>>> Thanks,
>>> Vincent.
>> There are several ways to take care of this I believe. One is using some
>> derivative of nxml-mode when editing php files. See nXhtml for one.
>
> Actually, in the html tag there is:
> charset=UTF-8
>
> How can I set UFT-8 as charset in Emacs ?
An nxml-mode derivate will do it for you.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Special characters (PHP)
2007-12-02 15:54 ` Defacta
2007-12-02 16:51 ` Lennart Borgman (gmail)
@ 2007-12-03 3:29 ` Stefan Monnier
1 sibling, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2007-12-03 3:29 UTC (permalink / raw)
To: help-gnu-emacs
> Actually, in the html tag there is:
> charset=UTF-8
Normally, Emacs-22 tries to find and use those tags, so please report
your case via M-x report-emacs-bug.
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <mailman.4416.1196610081.18990.help-gnu-emacs@gnu.org>]
* Re: Special characters (PHP)
[not found] ` <mailman.4416.1196610081.18990.help-gnu-emacs@gnu.org>
@ 2007-12-02 15:59 ` Defacta
0 siblings, 0 replies; 7+ messages in thread
From: Defacta @ 2007-12-02 15:59 UTC (permalink / raw)
To: help-gnu-emacs
On 2 déc, 16:40, Magnus Henoch <ma...@freemail.hu> wrote:
> Defacta <vincent.margue...@gmail.com> writes:
> > When I code using php-mode the result of special characters are for
> > example:
> > "Se d�connecter" instead of "Se déconnecter".
>
> > Do you know what I should do to be able to use emacs with special
> > characters not to have to use stuff like: "é" for the "é"
>
> I suspect that there is a mismatch between the encoding of the file and
> the encoding that the web server expects.
>
> Try C-x C-m f (set-buffer-file-coding-system). Enter either latin-1 or
> utf-8; then save and see if it works. (I suspect that latin-1 is the
> right choice)
>
> Magnus
set-buffer-file-coding-system set to utf-8 and it works...
Thanks,
Vincent.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-12-03 3:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-02 13:30 Special characters (PHP) Defacta
2007-12-02 14:09 ` Lennart Borgman (gmail)
2007-12-02 15:40 ` Magnus Henoch
[not found] ` <mailman.4414.1196604563.18990.help-gnu-emacs@gnu.org>
2007-12-02 15:54 ` Defacta
2007-12-02 16:51 ` Lennart Borgman (gmail)
2007-12-03 3:29 ` Stefan Monnier
[not found] ` <mailman.4416.1196610081.18990.help-gnu-emacs@gnu.org>
2007-12-02 15:59 ` Defacta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).