Notepad++ doesn't show Russian letters

6

3

I'm trying to setup the translation file (.php) but can't get Notepad++ to display the Russian text. The file was created on a PC with Russian Windows 7 (Windows Notepad) and everything looks fine there.

I sent it to my PC EN Windows 7 and this is what I see:

Ñïàñèáî çà Âàø èíòåğåñ ê ğåêëàìå íà

How can I solve this problem?

Teo

Posted 2013-09-04T22:13:37.383

Reputation: 161

Answers

4

By default Notepad will save the text using ANSI encoding. This will use the default character set on the source computer and means that unless your other computer has the same character set you won't see the same results. The solution is to save your file in a universal encoding, either Unicode or UTF-8. These encodings map the Russian characters to the Unicode standard so are independent of any default character set on your, or anyone elses, computer.

From Notepad choose File->Save As... and pick Unicode or UTF-8.

enter image description here

Then when you open the file on any other computer it should display as intended.

Note: You only need to do this once for each new file. Since the file has now been marked as Unicode/UTF-8 (with a Byte Object Marker - BOM) Notepad and Notepad++ will recognize the BOM and keep the file in the same encoding.

snowdude

Posted 2013-09-04T22:13:37.383

Reputation: 2 560

Windows now defaults to using UCS-2LE (UTF-16) as the encoding. NOTEPAD will read the file correctly. @Teo is talking about Notepad++. As the file came from a Russian system, it's almost certainly ALREADY a Unicode (UTF-8 or UTF-16) file, depending on the Windows version of the Russian system.Notepad++ can display Chinese, Japanese, Korean, etc. just fine. It's Russian it has the problem with, even when the files are already Unicode. – geo – 2014-01-01T23:20:59.340

5

Go to Encoding menu and click on : Convert to ANSI . then again go to Encoding menu and click on Encode in UTF-8 without BOM

undone

Posted 2013-09-04T22:13:37.383

Reputation: 824

@teo Can you pass me your file ? zip it and upload it so I can test it myself. I've done what I said and it works all the time – undone – 2013-09-05T16:54:36.330

I tried it but it didn't work. All I get is another code with letters and numbers like "xCAxE7xE0". Do you know why? – Teo – 2013-09-05T16:59:51.823

it shows those characters because of its encoding! – undone – 2013-09-05T17:02:24.240

@t pas me the file and one screen shot of what it should be like – undone – 2013-09-05T17:06:55.900

+1 Thanks for trying, I tried the solution from "snowdude" as well and it worked for me. I will upvote your asnswer as soon as I have the 15 point I need to... :) – Teo – 2013-09-05T19:30:28.220

1

This is the result of displaying a Windows-1251-encoded file with a ISO/IEC 8859-1-like encoding.

Solution: Open the file with encoding Windows-1251.

ens

Posted 2013-09-04T22:13:37.383

Reputation: 182

0

just select

Encoding in UTF-8

from Encoding menu , you are ready to go

demo

user44570

Posted 2013-09-04T22:13:37.383

Reputation: 127

0

Open the supposedly Russian text file with MS-Word. Before it opens, Word will indicate the encoding language, unless you have to select it from a list (e.g. UTF-8, Windows cyrillic, ...). If you have already encountered problems, this might mean that the encoding language was not UTF-8. Save the document as a TXT-file. MS-Word will ask you to specify the encoding format. SELECT UTF-8. Under Windows, rename the extension "txt" into "srt" if you want to make a Russian subtitle file. If not, leave it like this. Open your Notepad program. FROM the Notepad MENU, select the TXT-file that you have just saved with MS-Word. Just beside the "open" button, you have the possibility to choose the encoding format; select UTF-8. You should be able to read the Russian text as you saw it with MS-Word.

Elmira

Posted 2013-09-04T22:13:37.383

Reputation: 1