D
D
DarkByte20152016-10-03 15:01:40
C++ / C#
DarkByte2015, 2016-10-03 15:01:40

How to open a file in the required encoding?

How to explicitly specify the encoding of a file? string. And how to convert a file from one encoding to another? Those. not knowing in advance from which to which. As in a notebook, I opened it in one encoding, I wanted it - I recoded it into another. Those. I need something like the iconv function in PHP, here by analogy.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romy4, 2016-10-03
@romy4

Фактически, вам нужно сделать то, что делает блокнот: по признакам определить кодировку и сделать прослойку для потока байт, которая будет перекодировать налету.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question