alexpgp: (Computing)
[personal profile] alexpgp
Converting from CP1251 to Unicode is sticky, and the following macro will do the job, albeit slowly for large files.

Sub CP1251ToUnicode
'
  For i = 192 to 255
    With Selection.Find
      .Text = ChrW(i)
      .Replacement.Text = ChrW(i + 848)
      .Forward = True
      .MatchCase = True
    End With
  Next i
End Sub

One thing this macro definitely does not do is cause the converted text to be identified as being in Russian.

Cheers...

Profile

alexpgp: (Default)
alexpgp

January 2018

S M T W T F S
  1 2 3456
7 8910111213
14 15 16 17181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 6th, 2026 08:58 pm
Powered by Dreamwidth Studios