数码荔枝x软件商店-提供各类实用高效Win/Mac/iOS/Android(安卓)正版软件的下载/中国特惠购买
全部分类 首页 装机必备 荔枝选 Windows 专区 macOS 专区 手机专区
返回 文章详情

What are zero-width characters? Why identical links differ

This article was first published on the LIZHI.SHOP blog (lizhi.io, now offline) on 2019/8/5 and is being republished with some adjustments.

The amazing short link tool

Let me start with a little test: can you tell the difference between the following URLs?

https://zws.im/‌‌‌‌/

https://zws.im/‌‌‌‌‌/

https://zws.im/‌‌‌‌‌/

Obviously, you couldn't spot the difference, right? Try opening them in a browser to see how the results differ. (Make sure to copy both / characters.)

The short links above that "look" identical were all generated with the Zero Width Shortener URL shortening tool.

In fact, between the final two / characters are hidden characters we can't see—zero-width characters. Interesting, right? Let's decode them together.

图 1

What are zero-width characters?

Simply put, zero-width characters are invisible, non-printing characters that most programs or editors can't display. They exist in a page and are mainly used to adjust the display formatting of characters.

The most common one is the zero-width space, a type of whitespace character in Unicode. If you insert it between two letters, the two letters still appear to be stuck together.

图 2

Pretty abstract, right? Let me use the short URL above as an example: open the two adjacent / characters in Typora (a Markdown editor), and they reveal their true form.

The browser recognizes these hidden characters and points to different URLs.

图 3

▲ Typora can only mark character placeholders with red dots and cannot display the actual content

What are they used for?

Zero-width characters sound a little magical and can feel like a flashy trick, but they are also used in daily life.

Invisible fingerprinting

Because zero-width characters are invisible to the naked eye, some companies' confidential documents may hide fingerprint information about the people viewing them.

On the surface it looks like ordinary text, but when it is copied, pasted, and shared, the leaker's information is carried along with it. It sounds a bit like a detective novel.

图 4

Encrypted information sharing

Using the same invisible property, zero-width characters can also be used to share secret information online. With the corresponding encryption/decryption tools, you can attach content that is not easily noticed directly to ordinary text.

Word formatting

Zero-width characters are mainly used to adjust character display formatting, so it is only natural that they appear in Word.

When dealing with some special formatting needs, Word lets you insert characters such as "zero-width space" and "zero-width no-break space" to handle this. The exact path is Insert > Symbol > More Symbols > Special Characters.

I won't go into more detail here; those interested can search for more information.

图 5

Back to the magical short link from the beginning: has the mystery been solved? Whether you understand it or not, open Zero Width Shortener to generate the same kind of short link I used and have fun with your friends.

If you want to do more with links, a few tools I introduced earlier might come in handy.

When you're looking for tools in the LIZHI.SHOP software store, you can also keep an eye out for little utilities for text processing and productivity enhancement.

Do you have any more fun link tools to recommend? Or what are your thoughts on zero-width characters? Leave a comment and share them with me.

评论前,请先登录
还可输入 300 字
全部评论(0)
目录Contents
分享至
全部评论(0)
评论前,请先登录
还可输入 300 字
首页
分类
客服
0
购物车
我的
提示 关闭
取消 确定