compose key and more
compose key and more
🆕 blog! “A small collection of text-only websites”
A couple of years ago, I started serving my blog posts as plain text. Add .txt to the end of any URl and get a deliciously lo-fi, UTF-8, mono[chrome|space] alternative.
Here's this post in plain text - https://shkspr.mobi/blog/2025/12/a-small-collection-of-text-only-websites.txt
Obviously a webpage…
👀 Read more: https://shkspr.mobi/blog/2025/12/a-small-collection-of-text-only-websites/
⸻
#blogging #blogs #text #unicode #utf-8
Recently, we talked about #libid3tag and our intent to make a new release. So far, we have a preview of some changes that have already been made in the latest main:
- Mojibake fixes for #UTF-16 (no BOM) encoded fields.
- Some code cleanups, including warning fixes.
- Compatibility with #CMake > 4.0 (we now require CMake 3.10+)
Meanwhile, we are also working on #Doxygen documentation to better document the library too, so quite a few things are going on for libid3tag right now.
Please #Microsoft, fix the #UTF-8 drive letter bug, I'd like to have 💩:\>
REF: https://www.ryanliptak.com/blog/windows-drive-letters-are-not-limited-to-a-z/
Les exposants #UTF-8 ne se suivent pas, du coup on doit faire une fonction échevelée; c'est stupide, non !?
² U+00B2
³ U+00B3
¹ U+00B9
⁰ U+2070
⁴ U+2074
⁵ U+2075
⁶ U+2076
⁷ U+2077
⁸ U+2078
⁹ U+2079
```python
def to_exp(val):
if val == 1:
return chr(0x00B9)
elif val in [ 2, 3 ]:
return chr(0x00B0 + val )
else:
return chr(0x2070 + val )
return None
```
#メモ #文字コード #ANSI #JIS #Shift_JIS
#UTF-8 で書かれたテキストファイルをShift_JIS に変えたいのだけど、Notepad++でどのようにしたら良いのか分からなかった。「エンコード」の「文字セット」で「日本語 > Shift-JIS」を選ぶと日本語が文字化けしてしまう。
試しに「エンコード」の「文字セット」で「ANSI に変換」を選んだら文字化けせず、右下の文字コード表示も「ANSI」に変わった。もしかして…と検索して、今日、初めて知った。
#Windows のbatファイルをNotePad++で作成する際、最初はどうしてもデフォルトのUTF-8で保存してしまって、実行すると文字化けしてて、Shift_JIS で保存しなければいけなかったんだ…と直そうとしても方法が分からなくて、TeraPadの「文字/改行コード指定保存」を使っていたのだけど、NotePad++で「ANSI に変換」の後に保存すれば良かったのだな…と。
“The Best – But Not Good – Way To Limit String Length”, Adam Pritchard (https://adam-p.ca/blog/2025/04/string-length/).
On HN: https://news.ycombinator.com/item?id=43850398
#Programming #PLDI #Strings #Length #Unicode #Characters #Bytes #Graphemes #UTF #CodePoints #I18N #Internationalization