execute batch file command not display greek characters

April 19, 2012 at 07:48:11
Specs: Windows Server 2003 and Windows 7, 3.40 GH
I create a batch file with one command only

ConvertExcelToCsv "C:\NEW ΦΟΡΤΩΣΕΙΣ ΦΕΒ 2012 NATURALIA.XLSX" "Φύλλο1"

ConvertExcelToCsv is a console application (.Net Framework 2.0). I has two arguments
1. "C:\NEW ΦΟΡΤΩΣΕΙΣ ΦΕΒ 2012 NATURALIA.XLS"
2. "Φύλλο1"
Well, when run this batch, Greek Letters converted so, this application “ConvertExcelToCsv” cannot find the file "C:\NEW ΦΟΡΤΩΣΕΙΣ ΦΕΒ 2012 NATURALIA.XLSX" and sheet "Φύλλο1".
Can anyone help me?


See More: execute batch file command not display greek characters

Report •


#1
April 19, 2012 at 08:11:37
What codepage are you using? If the default 437 doesn't work, try changing it to 737 or 869:

chcp 737
chcp 869

Tony


Report •

#2
April 19, 2012 at 08:27:00
Ok Tony, thanks for your answer

I test all, but i have the same problem.

chcp 737
ConvertExcelToCsv "C:\NEW ΦΟΡΤΩΣΕΙΣ ΦΕΒ 2012 NATURALIA.XLSX" "Φύλλο1"

chcp 869
ConvertExcelToCsv "C:\NEW ΦΟΡΤΩΣΕΙΣ ΦΕΒ 2012 NATURALIA.XLSX" "Φύλλο1"

Coik


Report •

#3
April 19, 2012 at 10:03:19
Change your font to Lucida Console, and then

chcp 1252

Tony


Report •

Related Solutions

#4
April 19, 2012 at 23:32:13
Ok Tony

I changed my font to Lucida Consol on Command Prompt and
I used command chcp 1253 (1253 is for Greek not 1252)

chcp 1253
ConvertExcelToCsv "C:\NEW ΦΟΡΤΩΣΕΙΣ ΦΕΒ 2012 NATURALIA.XLSX" "Φύλλο1"
Its ok for me. This resolved my problem.
Thank you very much Tony. Have a nice day.

coik


Report •


Ask Question