Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8801577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:52:16+00:00 2026-06-14T00:52:16+00:00

I have a problem with some files in linux (Ubuntu) terminal, with accents in

  • 0

I have a problem with some files in linux (Ubuntu) terminal, with accents in the names. For example:

$ ls dir/
criação.png 

So, the terminal returns that file, so it exists. Now lets look if the file exists, with this simple command:

$ [ -f criação.png ] &&  echo "File Exist" || echo "Not Exist"
Not Exist

As you can see, “Not Exist”. Now, i have the same folder and file on OSX, then I run the same command and it returns this:

$ [ -f criação.png ] &&  echo "File Exist" || echo "Not Exist"
File Exist

I know a little about locale:

$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8" 
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

On linux, “Not Exist”, on OSX, “File Exist”… Someone, know how to fix that?

Maybe these can help:
http://nedbatchelder.com/blog/201106/filenames_with_accents.html
http://www.ruby-forum.com/topic/279105

UPDATE – Solution

I finally found a solution to that problem. You need to rename your files from NFD to NFC, here is the command to fix all files:

cd dir/
convmv -r -i -f utf8 -t utf8 --nfc --notest .

Source: http://blog.hbis.fr/2010/08/30/macox-utf8_filenames_normalization/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:52:17+00:00Added an answer on June 14, 2026 at 12:52 am

    One of the reasons might be the file name uses a different unicode normalization form of characters with combining marks than you use to type the name. See Unicode Equivalence.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with reading some gml files in c#. My files do
Has anyone had this problem? My projects tend to have some long XML files
I have some problem with my .htaccess file. Here I am adding my problem.
I have one problem , I want to get some data from XML file
I am experiencing some problem on UTF-8 Encoding. I have a CSV file and
Today i have a little problem containing a File Upload. First some Infos: Rubyversion:
i am getting problem as i have some data in a database tabel file
We have web developers on both Windows and Linux using SVN. Some PHP files
I have an Ubuntu Linux development machine and a Macbook that I work on.
In my source tree, I have some files with duplicate names. Not really a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.