UTF-8 Tab Separated File not opening in Excel properly - utf-8

I am generating tab separated .xls file from SAP MII using XSLT which has few french characters as headers/columns.
When I open this file in excel, all special characters are messed up and does not appear correctly.
Such as Description évènement
When I store this file as .txt and open it in notepad, everything is displayed correctly.
It seems that Excel is not opening this file in UTF-8 formay but opens by default in ASCII format.
How do I avoid that?
Soham

You have to open excel then import the CSV off the data tab. UTF-8 will be recognized during the import. That said, I do need the ability to do this by simply double clicking on the CSVs.

Related

Convert Excel-XML to XLS

My task is to convert Excel .xls file to Excel-XML format file(here). Edit cell values and write it back to .xls.
Convert from xls to xml maybe can't be done automatically. Editing file is easy with XMLTABLE and XMLQUERY in Oracle. When I save XML content with XLS extension it give me Error:
The file you are trying to open MyFile.xls is in a different format than
specified by the file extension. Verify the file is not corrupted and
is from trusted source before opening the file. Do you want to open
the file now?
When I select "Yes" option file is opening and everything work fine. I want to avoid this Error/Warning message.
There is some way to convert Excel-XML file to other Excel's format and not xml? I know the problem is that I change only file extension without change format, but maybe there is solution hint excel to open file without Warning or convert to real xls.
Notes:
Error/Warning can be see displayed edit file content. Steps are: Open Excel file, Save as Excel XML(file is save with .xml extension), Close file, Rename file extension to .xls, Open file with Excel and Error is displayed.

SSIS how to save all files in UTF-8 format in a particular folder?

I have many files 100 + in a folder which particular package is giving as a output.
From this folder I am currently manually saving all files in UTF -8 format before giving them for load into SAP server. This I am doing manually , Opening file in notepad then click on Save as , select UTF-8 as encoding and then save it.
But to do this for more than 100 files is really very time wasting and also leads to some human error.
I am aware about Flat file destination encoding but that is not converting the files in UTF-8 format , If i select this encoding on flat file destination and write output , then when i open that file in notepad again and when i click on save as I should see UTF-8 as encoding , but it is showing me ANSI.
Any help will save much time..
You can do this using an 'execute process task'.
1. Create a powershell script that changes the encoding on each file:
2. Save this script in a directory that is accessible by the ssis service account.
3. Add an 'execute process task' to your control flow.
4. Set the appropriate configuration values.

In sqlplus how to change or specific file encoding to utf8

in sql plus I created a file :
>EDIT test.sql
the file encoding is ansi. I want to change it to ut8, I tried by save-as but it didnt work
how to change test.sql from ansi to utf8 in sql plus ?
If you want to change your default editor for sqlplus, you can do this:
logon to sqlplus
use "define" command to set the path to the new editor. I like TextPad (which handles utf8 automatically), so the command (for my machine anyway) would be:
define _editor="c:\Program Files\TextPad 7\TextPad.exe";
Now, the edit command will bring up the new editor.
For TextPad, you can change the encoding by doing the following:
Conversion: Conversion between various file formats and encodings can
be made using the Save As command on the File menu. The options for
encoding are ANSI, DOS, Unicode, Unicode (big endian) and UTF-8.
So after doing the steps above, edit will bring up Textpad, and using Save As you can save the file using various encodings.
This is one benefit of changing the default editor from Notepad.

Exporting to CSV (using built in tools) - incorrect characters

When I export data from a screen using built-in show-csv-button="true", the application prints incorrect characters on places of special characters (the EUR sign, accent marks). Can I fix it by changing character set?
This seems to be an issue of managing the way MS Excel loads CSV. Opening it directly from browser downloads causes the problem. When I import the file in a standard way, letting Excel check the character set, data is OK.
Using Excel's import utility, it recognizes the UTF-8.
When opening from OS, 1250: Central European is used.

Is there any diffrence between edit an utf-8 ini file with notepad or VS2010?

I have an application which needs to read an ini file as a predefine config. There are some Chinese characters in the ini file, so I chose utf-8 encoding. But when I edit the file with Windows notepad and change some of the Chinese characters, the application will flash close when I run it. But when I use VS2010 to change the same Chinese characters everything is OK.
Is there some difference between editing a utf-8 ini file with notepad and VS2010? I'd prefer to be able to use notepad to modify the ini file as it is the most convenient option and most users will already have access to it.
This is a reviewed version of previous question.

Resources