- Open the file: Open the file you want to check in Notepad++.
- Access the Find function: Go to the "Search" menu and click "Find".
- Enter the regular expression: In the "Find what" field, type
[^\x00-\x7F]
. - Perform the search: Click "Find Next" to identify any special characters in the document.
[ ]
:
Square brackets indicate a character class, meaning any character within the brackets will be matched. ^
:
The caret symbol when used inside a character class negates the match, so [^\x00-\x7F]
means "any character that is not within the range of ASCII codes from 0 to 127".
Alternative method to view special characters: - Show all characters: Go to "View" > "Show Symbol" > "Show All Characters" to visually see all hidden characters including spaces, tabs, and line breaks, which can help identify potential special characters.
SAMPLES:-
The "�" is inserted when there are two or more consecutive spaces. It is trying to convert a space to a non-breaking space, but is using the wrong character encoding. Avoid putting two spaces after a sentence to avoid the problem.'
Test again.� Test. test.
no period� no period no period
three spaces�� two spaces� one space x
Solutions:-
The problem occurs regardless of whether the checkbox is checked or not, and it occurs when the outbound encoding is UTF-8 or ISO 8859-1.
the characters are hex codes EF, BF, BD, which in UTF-8 happens to be the Unicode "replacement" character to be used when the receiver does not understand the encoding.
�
U+FFFD
uFFFD
awk '{gsub(/�/, ""); print}' /path/file.txt >/path/file_1.txt
ADF:
replace(replace(replace(replace(Columns,'\u00A0',''),'\u00B4',''),'\uff08','('),'\uff09',')')
ADF:-
replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace( account_name, '�',''),'�',''),'',''),'¿½',''),'’',''),"''",''),'€',''),'½',''),'',''), 'º',''), '°',''),'ª',''), '',''), '',''), '®',''), '',''), '',''), 'Æ','E'), '–','-'), 'ß','B'), 'À', 'A'),'Á', 'A'),'Â', 'A'),'Ã', 'A'), 'Ä', 'A'), 'Å', 'A'), 'A‰', 'A'),'Ù', 'U'),'Ú', 'U'),'Û', 'U'),'Ü', 'U'), 'Ò', 'O'), 'Ó', 'O'), 'Ô', 'O'), 'Õ', 'O'), 'Ö', 'O'), 'Ø', 'O'),'Ç', 'C'),'ç', 'c'),'È', 'E'),'É', 'E'),'Ê', 'E'),'Ë', 'E'),'è', 'e'),'é', 'e'),'ê', 'e'),'ë', 'e'),'e‰', 'e'),'Ì', 'I'),'Í', 'I'),'Î', 'I'),'Ï', 'I'),'ì', 'i'),'í', 'i'),'î', 'i'),'ï', 'i'),'Ñ', 'N'),'ñ', 'n'),'ò', 'o'),'ó', 'o'),'ô', 'o'),'õ', 'o'),'ö', 'o'),'ø', 'o'),'ù', 'u'),'ú', 'u'),'û', 'u'),'ü', 'u'),'Ý', 'Y'),'ÿ', 'y'),'ý', 'y'),'ä','a'),'å','a'),'ǻ','a'),'ḁ','a'),'ă','a'),'ẚ','a'),'ắ','a'),'ằ','a'),'ằ','a'),'ẳ','a'),'ẵ','a'),'ȃ','a'),'â','a'),'ậ','a'),'ấ','a'),'ầ','a'),'ẫ','a'),'ẩ','a'),'ả','a'),'ǎ','a'),'ȧ','a'),'ǡ','a'),'ạ','a'),'ǟ','a'),'à','a'),'ȁ','a'),'á','a'),'ā','a'),'ã','a'),'ą','a'),'ą','a'),"“",' '),'\n',' '),'\r',' '),'·',''),'•',''), '™',''),'•',''),'©',''),'·',''),'',''),'�',''),'ō','o'),'ߥ',''),'',''),'-',''),'(','('),')',')'),'—',''),'„',''),'â€',''),'Ž',''),'”',''),'—',''),'‐',''),'—',''),'‎',''),'´', ''),'>',''),'i¼ˆ', ''),'i¼‰',''),'¢',''),'¬',''),'',''),'¿',''),' ',' '),'š',''),'‚',''),'\u00A0',' '),'\u0082',''),'‚',','),'"',',')
==================================================================
regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(Columns, '�', ''), '',''),'¿½',''), '’',"'"), '€',''),'½',''), '',''), 'º',''), '°',''), 'ª',''), '',''), '',''), '®',''), '',''), '',''), '–','-'), 'ß','B'), '[ÀÁÂÃÄÅA‰]', 'A'),'[ÙÚÛÜ]', 'U'), '[ÒÓÔÕÖØ]', 'O'),'[Ç]', 'C'),'[ç]', 'c'),'[ÈÉÊÊ]', 'E'),'[èéêëe‰]', 'e'),'[ÌÍÎÏ]', 'I'),'[ìíîï]', 'i'),'[Ñ]', 'N'),'[ñ]', 'n'),'[òóôõöø]', 'o'),'[ùúûü]', 'u'),'[Ý]', 'Y'),'[ÿý]', 'y'),'[äåǻḁăẚặắằẳẵȃâậấầẫẩảǎȧǡạǟàȁáāāãąą]','a')
=======
regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace
(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace
(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace
(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(regexReplace(name, '�', ''), '’',''),'¿½',''), '’',"'"),
'€',''),'½',''), '–',''), 'º',''), '°',''), 'ª',''), '•',''), '”',''), '®',''), '™',''), '‘',''), '–','-'), 'ß','B'), '[ÀÁÂÃÄÅA‰]', 'A'),'[ÙÚÛÜ]', 'U'),
'[ÒÓÔÕÖØ]', 'O'),'[Ç]', 'C'),'[ç]', 'c'),'[ÈÉÊÊ]', 'E'),'[èéêëe‰]', 'e'),'[ÌÍÎÏ]', 'I'),'[ìíîï]', 'i'),'[Ñ]', 'N'),'[ñ]', 'n')
,'[òóôõöø]', 'o'),'[ùúûü]', 'u'),'[Ý]', 'Y'),'[ÿý]', 'y'),'[äåǻḁăẚặắằẳẵȃâậấầẫẩảǎȧǡạǟàȁáāāãąą]','a'),'"',''),'\n',' '),'\r',' '),'"',' ')
IICS
REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,
REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,
REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1,REPLACECHR(1, COL, '�',''),'�',''),'',''),'¿½',''),'’',CHR(39)),'€',''),'½',''),'',''), 'º',''), '°',''),'ª',''), '',''), '',''), '®',''), '',''), '',''), 'Æ','E'), '–','-'), 'ß','B'), 'À', 'A'),'Á', 'A'),'Â', 'A'),'Ã', 'A'), 'Ä', 'A'), 'Å', 'A'), 'A‰', 'A'),'Ù', 'U'),'Ú', 'U'),'Û', 'U'),'Ü', 'U'), 'Ò', 'O'), 'Ó', 'O'), 'Ô', 'O'), 'Õ', 'O'), 'Ö', 'O'), 'Ø', 'O'),'Ç', 'C'),'ç', 'c'),'È', 'E'),'É', 'E'),'Ê', 'E'),'Ë', 'E'),'è', 'e'),'é', 'e'),'ê', 'e'),'ë', 'e'),'e‰', 'e'),'Ì', 'I'),'Í', 'I'),'Î', 'I'),'Ï', 'I'),'ì', 'i'),'í', 'i')
,'î', 'i'),'ï', 'i'),'Ñ', 'N'),'ñ', 'n'),'ò', 'o'),'ó', 'o'),'ô', 'o'),'õ', 'o'),'ö', 'o'),'ø', 'o')
,'ù', 'u'),'ú', 'u'),'û', 'u'),'ü', 'u'),'Ý', 'Y'),'ÿ', 'y'),'ý', 'y')
,'ä','a'),'å','a'),'ǻ','a'),'ḁ','a'),'ă','a'),'ẚ','a'),'ắ','a'),'ằ','a'),'ằ','a'),'ẳ','a'),'ẵ','a'),'ȃ','a'),'â','a'),'ậ','a'),'ấ','a'),'ầ','a'),'ẫ','a'),'ẩ','a'),
'ả','a'),'ǎ','a'),'ȧ','a'),'ǡ','a'),'ạ','a'),'ǟ','a'),'à','a'),'ȁ','a'),'á','a'),'ā','a'),'ã','a'),'ą','a'),'ą','a')
,chr(160),''),chr(180),''),chr(183),''),chr(149),'')
, '™',''),'•',''),'©',''),'·',''),chr(169),'')
REPLACECHR(0,REPLACECHR(0,REPLACECHR(0,
name,
'ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん',''),
'ァィゥェォカガキギクケコサザシジスセソタチツテトナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤユヨラリルレロ',''),
'千代田区丸の内二丁目番1号(丸の内パークビルディング)東京都港区赤坂赤坂Bizタワー階新闸路号邮编中央区日本橋本町欴中央区新港区東新橋西区高島一丁目1番1号神奈川県横浜市神奈川県横浜市', '')
NBSP ==Non-Breaking Space (NBSP): chr(160)
CRLF ==Carriage Return Line Feed (CRLF)
cr = chr(13)
lf = chr(10)
CHR(39)=''
chr(34)=='"'
chr(10)=='\n'
chr(13)== Carriage Return (CR) '\r',' '
'−' en_dash = chr(8210)
Here are some of the most common QTP ASCII character codes I often use:
QTP CODE | SYMBOL | DESCRIPTION |
Chr(34) | “ | Double Quotes |
Chr(10) | | Line Feed |
Chr(13) | | Carriage Return |
Chr(32) | | Space |
Chart for All the Valid Chr() Codes
QTP CODE | SYMBOL | DESCRIPTION |
Chr(0) | NUL | Null char |
Chr(1) | SOH | Start of Heading |
Chr(2) | STX | Start of Text |
Chr(3) | ETX | End of Text |
Chr(4) | EOT | End of Transmission |
Chr(5) | ENQ | Enquiry |
Chr(6) | ACK | Acknowledgment |
Chr(7) | BEL | Bell |
Chr(8) | BS | Back Space |
Chr(9) | HT | Horizontal Tab |
Chr(10) | LF | Line Feed |
Chr(11) | VT | Vertical Tab |
Chr(12) | FF | Form Feed |
Chr(13) | CR | Carriage Return |
Chr(14) | SO | Shift Out / X-On |
Chr(15) | SI | Shift In / X-Off |
Chr(16) | DLE | Data Line Escape |
Chr(17) | DC1 | Device Control 1 (oft. XON) |
Chr(18) | DC2 | Device Control 2 |
Chr(19) | DC3 | Device Control 3 (oft. XOFF) |
Chr(20) | DC4 | Device Control 4 |
Chr(21) | NAK | Negative Acknowledgement |
Chr(22) | SYN | Synchronous Idle |
Chr(23) | ETB | End of Transmit Block |
Chr(24) | CAN | Cancel |
Chr(25) | EM | End of Medium |
Chr(26) | SUB | Substitute |
Chr(27) | ESC | Escape |
Chr(28) | FS | File Separator |
Chr(29) | GS | Group Separator |
Chr(30) | RS | Record Separator |
Chr(31) | US | Unit Separator |
Chr(32) | | Space |
Chr(33) | ! | Exclamation mark |
Chr(34) | “ | Double quotes (or speech marks) |
Chr(35) | # | Number |
Chr(36) | $ | Dollar |
Chr(37) | % | Procenttecken |
Chr(38) | & | Ampersand |
Chr(39) | ‘ | Single quote |
Chr(40) | ( | Open parenthesis (or open bracket) |
Chr(41) | ) | Close parenthesis (or close bracket) |
Chr(42) | * | Asterisk |
Chr(43) | + | Plus |
Chr(44) | , | Comma |
Chr(45) | – | Hyphen |
Chr(46) | . | Period, dot or full stop |
Chr(47) | / | Slash or divide |
Chr(48) | 0 | Zero |
Chr(49) | 1 | One |
Chr(50) | 2 | Two |
Chr(51) | 3 | Three |
Chr(52) | 4 | Four |
Chr(53) | 5 | Five |
Chr(54) | 6 | Six |
Chr(55) | 7 | Seven |
Chr(56) | 8 | Eight |
Chr(57) | 9 | Nine |
Chr(58) | : | Colon |
Chr(59) | ; | Semicolon |
Chr(60) | < | Less than (or open angled bracket) |
Chr(61) | = | Equals |
Chr(62) | > | Greater than (or close angled bracket) |
Chr(63) | ? | Question mark |
Chr(64) | @ | At symbol |
Chr(65) | A | Uppercase A |
Chr(66) | B | Uppercase B |
Chr(67) | C | Uppercase C |
Chr(68) | D | Uppercase D |
Chr(69) | E | Uppercase E |
Chr(70) | F | Uppercase F |
Chr(71) | G | Uppercase G |
Chr(72) | H | Uppercase H |
Chr(73) | I | Uppercase I |
Chr(74) | J | Uppercase J |
Chr(75) | K | Uppercase K |
Chr(76) | L | Uppercase L |
Chr(77) | M | Uppercase M |
Chr(78) | N | Uppercase N |
Chr(79) | O | Uppercase O |
Chr(80) | P | Uppercase P |
Chr(81) | Q | Uppercase Q |
Chr(82) | R | Uppercase R |
Chr(83) | S | Uppercase S |
Chr(84) | T | Uppercase T |
Chr(85) | U | Uppercase U |
Chr(86) | V | Uppercase V |
Chr(87) | W | Uppercase W |
Chr(88) | X | Uppercase X |
Chr(89) | Y | Uppercase Y |
Chr(90) | Z | Uppercase Z |
Chr(91) | [ | Opening bracket |
Chr(92) | \ | Backslash |
Chr(93) | ] | Closing bracket |
Chr(94) | ^ | Caret – circumflex |
Chr(95) | _ | Underscore |
Chr(96) | ` | Grave accent |
Chr(97) | a | Lowercase a |
Chr(98) | b | Lowercase b |
Chr(99) | c | Lowercase c |
Chr(100) | d | Lowercase d |
Chr(101) | e | Lowercase e |
Chr(102) | f | Lowercase f |
Chr(103) | g | Lowercase g |
Chr(104) | h | Lowercase h |
Chr(105) | i | Lowercase i |
Chr(106) | j | Lowercase j |
Chr(107) | k | Lowercase k |
Chr(108) | l | Lowercase l |
Chr(109) | m | Lowercase m |
Chr(110) | n | Lowercase n |
Chr(111) | o | Lowercase o |
Chr(112) | p | Lowercase p |
Chr(113) | q | Lowercase q |
Chr(114) | r | Lowercase r |
Chr(115) | s | Lowercase s |
Chr(116) | t | Lowercase t |
Chr(117) | u | Lowercase u |
Chr(118) | v | Lowercase v |
Chr(119) | w | Lowercase w |
Chr(120) | x | Lowercase x |
Chr(121) | y | Lowercase y |
Chr(122) | z | Lowercase z |
Chr(123) | { | Opening brace |
Chr(124) | | | Vertical bar |
Chr(125) | } | Closing brace |
Chr(126) | ~ | Equivalency sign – tilde |
Chr(127) | | Delete |