From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: opening files with unicode characters in the file name on windows Date: 04 Aug 2004 09:46:35 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <410E6877.7010001@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091605906 25335 80.91.224.253 (4 Aug 2004 07:51:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Aug 2004 07:51:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 04 09:51:40 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BsGYl-0006v8-00 for ; Wed, 04 Aug 2004 09:51:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BsGcC-0005HE-Rj for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Aug 2004 03:55:12 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Original-X-Trace: news.uni-berlin.de 9uRjIGrFfLl6Z8urJsS+tgp2aZOxM21UExhrKU04s+BPAN/pOI User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:124644 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19977 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19977 "Eli Zaretskii" writes: > > From: Mathias Dahl > > 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