[Solved] Replace Unicode characters with ANSI

Discussion related to "Everything" 1.5 Alpha.
Post Reply
w64bit
Posts: 250
Joined: Wed Jan 09, 2013 9:06 am

[Solved] Replace Unicode characters with ANSI

Post by w64bit »

Is there any command to use in order to replace Unicode characters with ANSI (file and folder names)?
Last edited by w64bit on Fri Jan 21, 2022 3:28 pm, edited 1 time in total.
therube
Posts: 4879
Joined: Thu Sep 03, 2009 6:48 pm

Re: Replace Unicode characters with ANSI

Post by therube »

For a single character (or to replace sets, one at a time), F2 (Replace).

Select your files/directories
F2
Regex (enable)

Code: Select all

Old:  ȋ
New:  i
That will replace the first instance of ȋ with i.


There is a way to replace all instances of a character too... (once I remember, or find it ;-)).
Well, this works, but is different from what I've forgotten from before:

Code: Select all

Old:  ȋ+
New:  i
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Replace Unicode characters with ANSI

Post by raccoon »

viewtopic.php?f=12&t=10690&p=40772&hili ... ize#p40739
void wrote: Thu Oct 28, 2021 5:17 am Everything 1.5.0.1282a adds a #remove-diacritics: preprocessor search function to remove diacritics from the specified text.
They won't be replaced with ANSI (33-255) but instead ASCII (33-127).
void
Developer
Posts: 16428
Joined: Fri Oct 16, 2009 11:31 pm

Re: Replace Unicode characters with ANSI

Post by void »

Select your files/directories
F2
Regex (enable)

Code: Select all

Old: ȋ
New: i

That will replace the first instance of ȋ with i.
Enabling regex will replace all occurrences of old format with the new format.
(Disabling regex will replace only the first occurrence)

Select your files/directories
F2
Regex (enable)

Old: ȋ
New: i


-or-


Select your files/directories
F2
Regex (disable)

Old: %1
New: #remove-diacritics:<%1>
(removes all diacritics, not just ȋ->i and also normalizes the text: æ->ae)
therube
Posts: 4879
Joined: Thu Sep 03, 2009 6:48 pm

Re: Replace Unicode characters with ANSI

Post by therube »

(
Enabling regex will replace all occurrences of old format with the new format.
Sure enough.
Wonder what I was seeing at the time...?
)
w64bit
Posts: 250
Joined: Wed Jan 09, 2013 9:06 am

Re: Replace Unicode characters with ANSI

Post by w64bit »

Thank you all very much.
Post Reply