如何判断一个“文件名”是哪种encoding?

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

如何判断一个“文件名”是哪种encoding?

ze phyr
大家好,

有没有什么工具可以侦测到一个文件  文件名 的encoding?


--
regards
phyrster

Each of us bears his own Hell.
                -- Publius Vergilius Maro (Virgil)


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: 如何判断一个“文件名”是哪种encoding?

text wiki
$ file foo.txt
foo.txt: UTF-8 Unicode text

On 4/8/06, phyrster <[hidden email]> wrote:

> 大家好,
>
> 有没有什么工具可以侦测到一个文件  文件名 的encoding?
>
>
> --
> regards
> phyrster
>
> Each of us bears his own Hell.
>                 -- Publius Vergilius Maro (Virgil)
>
>
> --
> To UNSUBSCRIBE, email to [hidden email]
> with a subject of "unsubscribe". Trouble? Contact [hidden email]
>
>


--
文泉驿造字:http://www.wenq.org
Reply | Threaded
Open this post in threaded view
|

Re: 如何判断一个“文件名”是哪种encoding?

lin cheng
In reply to this post by ze phyr
用vim 打开然后
:set fileencoding

准确率很高。

On 4/8/06, phyrster <[hidden email]> wrote:

> 大家好,
>
> 有没有什么工具可以侦测到一个文件  文件名 的encoding?
>
>
> --
> regards
> phyrster
>
> Each of us bears his own Hell.
>                 -- Publius Vergilius Maro (Virgil)
>
>
> --
> To UNSUBSCRIBE, email to [hidden email]
> with a subject of "unsubscribe". Trouble? Contact [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: 如何判断一个“文件名”是哪种encoding?

ze phyr
On 11:54 Sun 09 Apr 2006, lin cheng wrote:
> 用vim 打开然后
> :set fileencoding
>
> 准确率很高。
> On 4/8/06, phyrster <[hidden email]> wrote:
> > 有没有什么工具可以侦测到一个文件  文件名 的encoding?


我说的是文件名,不是文件的内容。


--
regards
phyrster

The truth of a thing is the feel of it, not the think of it.
                -- Stanley Kubrick


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: 如何判断一个“文件名”是哪种encoding?

Fen Lu
In reply to this post by text wiki
$ file graduate.doc
graduate.doc: Microsoft Office Document

....
好像不行呃~还是不知道文件名的编码

Reply | Threaded
Open this post in threaded view
|

回复: 如何判断一个“文件名”是哪种encoding?

任晓磊
把文件名写到文本文件里
然后对文本文件进行判断

在 06-4-18,[hidden email]<[hidden email]> 写道:
> $ file graduate.doc
> graduate.doc: Microsoft Office Document
>
> ....
> 好像不行呃~还是不知道文件名的编码
>