I am using ruby 2.5 and supporting for foreign chars I am using..
NLS_LANG'] ||= 'AMERICAN_AMERICA.UTF8
In ROR application. But facing issue with special chars in file name.
Here is the Problem statement.
- Generating the files using ruby rake
- Files are getting generated on Linux server
- Files are having special chars and those looking fine in linux server.
- Now I am fetching these files from Window server using scp command,
but When I see these reports in Window server, foreign chars are not supported in file names.
Any suggestion on This.
I have tried below options:-
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 => :replace, :undef => :replace, :replace => "?")
I am not sure about this issue is server level or application level.
Help will be appreciated.