I have lots of files in us-ascii but they should be converted in utf-8
I've tried it with
recode UTF-8 [filename]
and with
iconv -f ascii -t utf8 [filename] > [newfilename]
but when I'm check the file after this with file -bs [filename] ...
What's going wrong? and how can I convert those files correctly? (They are .rb files)
I have to convert those files because my ruby on rails app broke while I have us-ascii files in the project.
UPDATE
Thanks for thos tips, but when I do:
iconv -f ISO-8859-1 -t UTF-8
Like mentioned in the other question ... dosn't have any effect .. same result
text/x-ruby; charset=us-ascii
UPDATE Here is an example whats going wrong:
incompatible character encodings: UTF-8 and ASCII-8BIT
Extracted source (around line #65):
62: <div id="content">
63: <%= render :partial => "shared/breadcrumb" %>
64:
65: <%= yield %>
66: </div>
67: <div id="footer">
68: <%= link_to t("navigation.home"), { :controller => :pages, :action => :home } %>