From: Mathias Dahl <brakjoller@hotmail.com>
Subject: Re: opening files with unicode characters in the file name on windows
Date: 04 Aug 2004 09:46:35 +0200 [thread overview]
Message-ID: <uwu0f8hwk.fsf@hotmail.com> (raw)
In-Reply-To: mailman.2622.1091561203.1960.help-gnu-emacs@gnu.org
"Eli Zaretskii" <eliz@gnu.org> writes:
> > From: Mathias Dahl <brakjoller@hotmail.com>
> > Newsgroups: gnu.emacs.help
> > Date: 03 Aug 2004 08:32:15 +0200
> >
> > > Does (setq file-name-coding-system 'utf-8) help?
> >
> > No, even though it was a very interesting option. When I set
> > that variable I can *save* files and the file names looks
> > very cryptic in explorer.exe, probably because Windows use
> > UTF-16
> Your original message said ``file names with Unicode
> characters''. Can you tell what characters are those, and
> why do you think they are encoded in some Unicode-related
> encoding, like UTF-16?
Well, I have been surfing around for a couple of weeks ago
since I have had to debug some unicode-issues in our
applications. Everywhere I go I rad about how Microsoft uses
unicode internally for string, and also in file names. And
as they say that they use UTF-16 for strings and file
content I just supposed they used it for encoding file names
too. But of course I man be wrong. And I really mean that as
I am a complete beginner when it comes to unicode.
> Can you look at the file's name as recorded in the
> directory with some low-level tool that actually shows the
> byte values that encode the file's name?
No, but I would really like to. :)
> You see, I suspect that Windows file names are encoded in
> the system codepage, not in UTF-16. So perhaps setting
> file-name-coding-system to that codepage would solve the
> problem.
Hmm, ok. I will try that, I just have to figure out which
code page I am currently using. Thanks for the tip, I will
report back my findings here.
Btw, is there some more "low-level" way of opening files in
Emacs so that I can open ANY file regardless of how the file
name is encoded?
/Mathias
next prev parent reply other threads:[~2004-08-04 7:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-02 12:53 opening files with unicode characters in the file name on windows Mathias Dahl
2004-08-02 16:14 ` Kevin Rodgers
2004-08-03 6:32 ` Mathias Dahl
2004-08-03 19:19 ` Eli Zaretskii
[not found] ` <mailman.2622.1091561203.1960.help-gnu-emacs@gnu.org>
2004-08-04 7:46 ` Mathias Dahl [this message]
2004-08-04 7:56 ` Jason Rumney
2004-08-04 8:42 ` Mathias Dahl
2004-08-04 16:29 ` Eli Zaretskii
[not found] ` <mailman.2714.1091637376.1960.help-gnu-emacs@gnu.org>
2004-08-05 11:28 ` Mathias Dahl
2004-08-06 9:38 ` Eli Zaretskii
[not found] ` <mailman.112.1091785538.2011.help-gnu-emacs@gnu.org>
2004-08-06 11:44 ` Mathias Dahl
2004-08-06 13:08 ` Mathias Dahl
2004-08-04 14:27 ` Mathias Dahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uwu0f8hwk.fsf@hotmail.com \
--to=brakjoller@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).