TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Invisible Characters

131 pointsby 0xbktover 2 years ago

14 comments

orbital-decayover 2 years ago
My favorite is U+202E Right-to-Left Override, which doesn&#x27;t appear to be listed there. A surprising amount of UIs (apps, sites) can be broken with it as they were never tested with right-to-left writing direction in mind. Even a Unicode reference website that I just used to recall the code is broken by it. [0] Entering RLO into arbitrary input forms for fun can bend spacetime, I swear.<p>[0] <a href="https:&#x2F;&#x2F;unicode-table.com&#x2F;en&#x2F;202E&#x2F;" rel="nofollow">https:&#x2F;&#x2F;unicode-table.com&#x2F;en&#x2F;202E&#x2F;</a>
评论 #33862739 未加载
评论 #33870003 未加载
评论 #33862404 未加载
评论 #33861752 未加载
interroboinkover 2 years ago
This is another good reason to have a text editor you really trust, which can show you these things. Whether it&#x27;s different line-endings or weird invisible space stuff, I know I can just open it in Vim and figure out what&#x27;s really going on pretty quickly. Wasted a lot of time earlier in my life on that nonsense (:
评论 #33857883 未加载
评论 #33866820 未加载
评论 #33862391 未加载
评论 #33860125 未加载
abrudzover 2 years ago
Great for doing tacit programming[1] in JavaScript:<p><pre><code> avg=ㅤ=&gt;ㅤ.reduce((ㅤㅤ,ㅤㅤㅤ)=&gt;ㅤㅤ+ㅤㅤㅤ)&#x2F;ㅤ.length avg([3,1,4,1,5]) 2.8 </code></pre> [1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Tacit_programming" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Tacit_programming</a>
评论 #33862980 未加载
csswizardryover 2 years ago
<a href="https:&#x2F;&#x2F;csswizardry.com&#x2F;2014&#x2F;01&#x2F;use-zero-width-spaces-to-stop-annoying-twitter-users&#x2F;" rel="nofollow">https:&#x2F;&#x2F;csswizardry.com&#x2F;2014&#x2F;01&#x2F;use-zero-width-spaces-to-sto...</a>
Mockapapellaover 2 years ago
A while back I used these kinds of characters to encode programs into invisible text: <a href="https:&#x2F;&#x2F;www.thelisowe.com&#x2F;sleeper-cell-a-method-of-embedding-invisible-programs-into-source-code&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.thelisowe.com&#x2F;sleeper-cell-a-method-of-embedding...</a><p>It doesn&#x27;t do much on its own. I feel like it could, but the most effective use case I&#x27;ve come up with it you can invisibly plant a piece of code in some piece of text, then later on run another script that looks for that piece of code and runs it. I&#x27;m guessing that splitting the code up like this would make it harder to detect (not to mention that this code could even reside in other programs&#x27; comments undetected).
评论 #33861554 未加载
nervuriover 2 years ago
Zero-width characters can be used to covertly watermark text and to figure out who copied text from a page and pasted it somewhere else. Server software can encode a hidden number between every few words, which corresponds to a server log entry with your username (if logged in), IP address, browser fingerprint, etc. I wrote more about this here:<p><a href="https:&#x2F;&#x2F;nervuri.net&#x2F;stega" rel="nofollow">https:&#x2F;&#x2F;nervuri.net&#x2F;stega</a><p>I think the best solution to this type of problem would be a clipboard utility that warns you when you copy text which contains hidden characters, homoglyps, rarely used whitespace characters, etc.
ludovicianulover 2 years ago
I&#x27;ve built a tool specifically to test if these kind of characters will reach API backends: <a href="https:&#x2F;&#x2F;github.com&#x2F;Endava&#x2F;cats" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Endava&#x2F;cats</a>. My idea was that APIs should explicitly reject or sanitise input containing such characters.
thirtysevenover 2 years ago
So I guess the only future-proof solution to check for this is to render user input off screen and count the number of solid pixels, at least until &quot;falsehoods programmers believe about names&quot; gets updated to include &quot;Names must consist of at least one readable glyph&quot;.
评论 #33862882 未加载
30minAdayHNover 2 years ago
back in 90s on windows, our secret directory used to be alt+255 (it looks like a space but not space i think)
评论 #33857394 未加载
评论 #33862546 未加载
dezen0tsover 2 years ago
A great way for QA’s to mess with developers
评论 #33857110 未加载
franky47over 2 years ago
𝅷𝅶 [1]<p>[1] <a href="https:&#x2F;&#x2F;twitter.com&#x2F;fortysevenfx&#x2F;status&#x2F;1599483273864187904" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;fortysevenfx&#x2F;status&#x2F;1599483273864187904</a>
Minor49erover 2 years ago
𝅵
评论 #33856568 未加载
saliagatoover 2 years ago
<p><pre><code> </code></pre>
hamiltoniansover 2 years ago
usefull for impersonation scammers , like on twitter