title: NLS_LANG = 'AMERICAN_AMERICA.UTF8 issue with Ruby rake
body: <p>I am using ruby 2.5 and supporting for foreign chars I am using..</p>
  
  <pre><code>NLS_LANG'] ||= 'AMERICAN_AMERICA.UTF8 
  </code></pre>
  
  <p>In ROR application. 
  But facing issue with special chars in file name.</p>
  
  <p>Here is the Problem statement.</p>
  
  <ol>
  <li>Generating the files using ruby rake </li>
  <li>Files are getting generated on Linux server</li>
  <li>Files are having special chars and those looking fine in linux server.</li>
  <li>Now I am fetching these files from Window server using scp command,</li>
  </ol>
  
  <p>but When I see these reports in Window server, foreign chars are not supported in file names.</p>
  
  <p>Any suggestion on This.</p>
  
  <p>I have tried below options:-</p>
  
  <pre><code>file_name = file_name.encode("ISO-8859-1")
  file_name = file_name.encode("UTF-8")
  
  Iconv.conv('Windows-1252', 'UTF-8', file_name)
  
  
  file_name.encode!("windows-1252", :invalid =&gt; :replace, :undef =&gt; :replace, :replace =&gt; "?")
  </code></pre>
  
  <p>I am not sure about this issue is server level or application level.</p>
  
  <p>Help will be appreciated.   </p>