Jump to content

Invisible red dot UNICODE character


Recommended Posts

'F‌inal' ; <========= problem between F and i 

'F‌inal' ; <========= problem between F and i 

'Final' ; <========= Notepad ANSI, no problem

final1.png.72128541afbe484cd5c3252613b87264.png

F‌inal :)

final2.png.017cc6c3b4857088e9955e9ac946329d.png

PostgreSQL complains about that red dot.  Notepad++ marks the first word.

Notepad said it contains Unicode.  Saved as ANSI and put back. Red dot is gone.

 

the Text is inserted manually into an AutoIt Input box.  Things get done to it, and it ends up in a SQL database.  The data seems fine, but when I start generating reports, all kinds of funny problems show up.

 

If I can ID that character, I can remove it.

Any ideas?

Edited by Skysnake
Typo

Skysnake

Why is the snake in the sky?

Link to comment
Share on other sites

With a bit broader range of removal:

StringRegExpReplace('F‌inal', '[\x{200B}-\x{200D}]', '')

Yet removing ZWJ (U+0200D) may change semantic of Unicode flux in some languages.

You may also discover other such special codepoints, depending on the nature of the input text.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

4 hours ago, Skysnake said:
'F‌inal' ; <========= problem between F and i 

'F‌inal' ; <========= problem between F and i 

'Final' ; <========= Notepad ANSI, no problem

Going by the character which my browser claims to be in between F and i, it is a Zero-width non-joiner character in unicode (code point 8204), it is used in some languages to represent more complex writing systems :)

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...