Công cụ phát hiện các ký tự Unicode vô hình nằm trong văn bản — zero-width space, zero-width joiner, ký tự đánh dấu hướng chữ, dấu cách không ngắt dòng — và cho phép xoá sạch chúng. Dán văn bản vào là thấy ngay vị trí từng ký tự ẩn kèm mã điểm Unicode. Dùng khi code báo lỗi cú pháp mà nhìn không thấy gì sai, hay khi copy dữ liệu từ web bị dính ký tự lạ.
Những ký tự này không hiển thị nhưng vẫn có mã riêng. U+200B là zero-width space, U+FEFF là BOM đôi khi lọt vào giữa chuỗi sau khi qua nhiều công cụ, U+00A0 là dấu cách không ngắt dòng trông y như dấu cách thường, và U+202E đảo chiều hiển thị chữ. Đây cũng là kỹ thuật mà kẻ xấu dùng để giấu nội dung trong email lừa đảo, nên quét lại văn bản lạ là thói quen tốt.
Cách sử dụng
- Dán văn bản cần kiểm tra vào ô nhập liệu.
- Xem danh sách ký tự ẩn tìm được, kèm mã U+ và vị trí.
- Bật chế độ hiển thị để thấy ký tự ẩn được thay bằng nhãn dễ đọc.
- Bấm Làm sạch để xoá toàn bộ ký tự ẩn khỏi văn bản.
- Sao chép bản đã sạch và dán trở lại vào file hoặc code.
A detector for invisible Unicode characters hiding in text: zero-width spaces, zero-width joiners, bidirectional marks, non-breaking spaces. Paste text and see the exact position of each hidden character with its code point, then strip them all. It is for the moment a code editor reports a syntax error where nothing looks wrong, or when copied web content arrives with stray characters attached.
These characters render as nothing but carry real code points. U+200B is the zero-width space, U+FEFF is a BOM that sometimes ends up mid-string after passing through several tools, U+00A0 is a non-breaking space that looks identical to a normal one, and U+202E reverses the displayed direction of text. That last one is also used to disguise content in phishing mail, which is a good reason to scan unfamiliar text.
How to use
- Paste the suspect text into the input box.
- Read the list of hidden characters found, with their U+ codes and positions.
- Turn on marker mode to see each one replaced by a readable label.
- Press Clean to strip every invisible character from the text.
- Copy the cleaned version and paste it back into your file or code.