Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-21-2004, 04:33 AM   #1
Registered: Jan 2004
Posts: 40

Rep: Reputation: 15
How to know encoding used for filename


For a project I need to know wich encoding (ISO-Latin1 or UTF-8...) is used for path and filename. Is this always the same ?
can I assume something ?

I use iconv to convert encoding (actually all the app is in UTF-8) and I can't use a library for this.

Thanks for your response.
Old 12-22-2004, 09:57 AM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 180Reputation: 180
Well, you can check if there are UTF-8 characters in the path. And that's the only way. But... it'll fail if other encoding is used.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
change uploaded files from filename.avi to filename.avi.html like latheesan Linux - Newbie 3 06-16-2005 04:33 AM
filename~ djc SUSE / openSUSE 2 02-14-2005 01:52 PM
@ in filename Hamsjael Linux - Software 4 01-27-2005 01:05 PM
filename- and filename~ files? slinky2004 Linux - Newbie 5 10-17-2004 10:32 PM
\ in filename cblamer Slackware 6 12-20-2003 02:40 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration