Skip to main content

Forums » UltraEdit-32 » Find/Replace/Regular Expressions » Ho...

Popularity Report

Total Popularity Score: 0

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Rank

URL Tag Cloud

Bookmark History

Saved by 1 people (0 private), first by anonymouse user on 2007-11-21


Public Sticky notes

Post subject: Re: How to find 0xE6 0xAF 0x8F ? (hexdeximal bytes)
Posted: Wed Nov 21, 2007 10:59 am
Reply with quote Edit/Delete this post
Thank you so much ! The problem has been fixed dramatically.

1. I am actually writing an UEditor Script program, named wp.js.
But UTF-8 charactors searchings were failed by the script program.
UEditor indicates wp.js file is DOS format.

2. Add a comment into the scrip program, that makes UEditor to think it an UTF-8 formated file,
// charset=UTF-8

3. Close wp.js from Ueditor, reopen it again. (Unicode/UTF-8 detection is enabled)
Now UEditor indicates wp.js is U8-DOS format !! ha ha bingo

4. Correct garbage charactors appear in wp.js file, because format
changed.

5. Now wp.js script program works fine on U8-Unix formated target files.

The root cause is that the .js file was not in UTF-8
format so search string certainly failed on U8-UNIX formated target files.


Q: How does UEdit think my file's format is?
A: Search UEditor's help "Unicode" and "UTF-8", the answer is the status bar under the working area. In my case, it shows 'U8-UNIX'

Highlighted by hcchen

Readers (1)