V
V
VanilaSpirit2020-09-21 15:03:20
C++ / C#
VanilaSpirit, 2020-09-21 15:03:20

How to fix character change in Directory.EnumerateFiles?

There is a folder where pictures are sent for download
. Some of them have Russian. title.
With Directory.EnumerateFiles(path) - all files from the folder are selected (this is ok), but rus. symbols change to hieroglyphs
How can I leave Russian. characters and still solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HemulGM, 2020-09-21
@HemulGM

Set the code page at the beginning of the program. (I understand this is a console application)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question