Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
37575 Lượt xem

is it possible to somehow convert csv data that has iso-8859-13 encoding to utf-8?

Old system, does not have utf-8 encoding, it uses only iso-8859-13. And OpenERP, does not have iso-8859-13, but have both utf8 and utf-16. If i try to open csv file with other encoding than iso-8859-13, then some symbols are not recognized. And if I try to import such file into OpenERP it gives error that I have wrong encoding. I can only import it using windows-1252, but then it will import with unrecognized symbols. What can I do to convert it to normal encoding such as utf-8?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

with a simple text editor you can convert your file to utf:

http://notepad-plus-plus.org/

image description

OR for Linux look here:

http://superuser.com/questions/16672/how-can-i-convert-multiple-files-to-utf-8-encoding-using-nix-command-line-tools

Ảnh đại diện
Huỷ bỏ
Tác giả

Do you mean set encoding or convert? because where is an option to convert encoding? Also I use Linux, so what equivalent could do in linux as in gedit I don't see a way to convert encoding from one to another.

With notepad++ you can encode and convert. see updated image. But it is Windows application. I'm sorry... There must be something equivalent for linux too...

I found a Linux way. See my updated answer. I hope it works, I cannot try it...

Tác giả

I was able to convert encoding simply creating new csv file with utf-8 encoding, then copying everything there. I previously tried something similar with libreoffice, but that didn't work.

Câu trả lời hay nhất

I prefer to use Codelobster editor

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 6 20
3786
1
thg 11 18
9307
11
thg 2 17
63573
2
thg 3 15
10735
4
thg 11 24
10980