mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

12K
active users

#utf16

0 posts0 participants0 posts today
Tommi Nieminen<p>Imutin kaikki <a href="https://mastodontti.fi/tags/Facebook" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Facebook</span></a>'in julkaisuni – ainakin jos <a href="https://mastodontti.fi/tags/Meta" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Meta</span></a>'a uskotaan. Pyysin <a href="https://mastodontti.fi/tags/JSON" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JSON</span></a>-muodossa toivossa, että tulisi sutjakammin. Hieman ongelmia aiheutti JSONin koodaus: merkkijonot ovat validia <a href="https://mastodontti.fi/tags/UTF8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UTF8</span></a>:aa mutta JSON ilmeisesti olettaa <a href="https://mastodontti.fi/tags/UTF16" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UTF16</span></a>:n, joten vaaditaan mukamuunnos eestaas; apua löytyi <a href="https://mastodontti.fi/tags/StackOverflow" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>StackOverflow</span></a>’sta. Aikaleimat sentään olivat standardi-<a href="https://mastodontti.fi/tags/POSIX" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>POSIX</span></a>’ia.</p><p>En tiedä, kuinka täydellinen ”arkisto” on, mutta ainakin jotakin saisi talteen, kun lähtee lätkimään. <a href="https://mastodontti.fi/tags/some" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>some</span></a> <a href="https://mastodontti.fi/tags/atkjuttuja" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>atkjuttuja</span></a></p>
linuxThe crash occurs when using wstring_convert to convert binary data to UTF-16 I want to perform th...<br><br><a href="https://stackoverflow.com/questions/79080277/the-crash-occurs-when-using-wstring-convert-to-convert-binary-data-to-utf-16" rel="nofollow noopener noreferrer" target="_blank">https://stackoverflow.com/questions/79080277/the-crash-occurs-when-using-wstring-convert-to-convert-binary-data-to-utf-16</a><br><br><a rel="nofollow noopener noreferrer" class="mention hashtag" href="https://mastodon.social/tags/c++" target="_blank">#c++</a> <a rel="nofollow noopener noreferrer" class="mention hashtag" href="https://mastodon.social/tags/linux" target="_blank">#linux</a> <a rel="nofollow noopener noreferrer" class="mention hashtag" href="https://mastodon.social/tags/utf-16" target="_blank">#utf-16</a> <a rel="nofollow noopener noreferrer" class="mention hashtag" href="https://mastodon.social/tags/truetype" target="_blank">#truetype</a> <a rel="nofollow noopener noreferrer" class="mention hashtag" href="https://mastodon.social/tags/utf" target="_blank">#utf</a><br><br><a href="https://awakari.com/pub-msg.html?id=2nKEfZKhzoTMRXjqfM9mmg4IpEL" rel="nofollow noopener noreferrer" target="_blank">Event Attributes</a>
silas<p>Really good and interesting article about the problem of calculating the length of strings.</p><p><a href="https://bertha.social/tags/unicode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unicode</span></a> <a href="https://bertha.social/tags/utf8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf8</span></a> <a href="https://bertha.social/tags/utf16" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf16</span></a> <a href="https://bertha.social/tags/utf32" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf32</span></a> <a href="https://bertha.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a></p><p><a href="https://hsivonen.fi/string-length/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">hsivonen.fi/string-length/</span><span class="invisible"></span></a></p>
Habr<p>[Перевод] Нельзя предполагать, что все используют UTF-8</p><p>Как вычислять кодировку при помощи статистики Люди говорят на бесчисленном количестве разных языков. Эти языки не только несовместимы между собой, но и представляют огромную трудность при транспиляции в среде исполнения. К сожалению, все попытки стандартизации провалились. По крайней мере, в таком положении вещей есть, кого винить: Бога. Ведь именно он вынудил человечество говорить на разных языках из-за древнего спора о строительстве объекта недвижимости . Однако человечество может винить себя за то, что сложности в общении испытывают компьютеры . И одна из самых больших проблем одновременно является самой простой: компьютеры не договорились о том, как записывать буквы двоичным кодом.</p><p><a href="https://habr.com/ru/companies/ruvds/articles/811811/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">habr.com/ru/companies/ruvds/ar</span><span class="invisible">ticles/811811/</span></a></p><p><a href="https://zhub.link/tags/ruvds_%D0%BF%D0%B5%D1%80%D0%B5%D0%B2%D0%BE%D0%B4%D1%8B" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruvds_переводы</span></a> <a href="https://zhub.link/tags/unicode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unicode</span></a> <a href="https://zhub.link/tags/%D0%BA%D0%BE%D0%B4%D0%B8%D1%80%D0%BE%D0%B2%D0%BA%D0%B8_%D1%82%D0%B5%D0%BA%D1%81%D1%82%D0%B0" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>кодировки_текста</span></a> <a href="https://zhub.link/tags/win1252" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>win1252</span></a> <a href="https://zhub.link/tags/koi8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>koi8</span></a> <a href="https://zhub.link/tags/utf8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf8</span></a> <a href="https://zhub.link/tags/utf16" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf16</span></a> <a href="https://zhub.link/tags/%D0%BE%D0%BF%D1%80%D0%B5%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_%D0%BA%D0%BE%D0%B4%D0%B8%D1%80%D0%BE%D0%B2%D0%BE%D0%BA" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>определение_кодировок</span></a></p>
argv minus one<p>Whose bright idea was it to use <a href="https://mstdn.party/tags/UTF16" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UTF16</span></a> in <a href="https://mstdn.party/tags/SMS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SMS</span></a> messages? Add one <a href="https://mstdn.party/tags/emoji" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emoji</span></a>, and your brief message has to be split into like 5 pieces.</p>
Felix Palmen 📯<p>Just released dos2ansi v0.4, with lots of <a href="https://techhub.social/tags/DOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DOS</span></a> <a href="https://techhub.social/tags/codepage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codepage</span></a> s supported and a testmode to display them.</p><p>The next nice feature would be to use the actual terminal capabilities if output goes there. Very simple on *nix-like systems (<a href="https://techhub.social/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a>, <a href="https://techhub.social/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FreeBSD</span></a>, ...), just link <a href="https://techhub.social/tags/curses" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>curses</span></a> and use the termcap functions.</p><p>Thinking about <a href="https://techhub.social/tags/Windows" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Windows</span></a> again, either I keep relying on <a href="https://techhub.social/tags/UTF8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UTF8</span></a> support (since <a href="https://techhub.social/tags/win7" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>win7</span></a> IIRC? and still a bit buggy) and <a href="https://techhub.social/tags/ANSI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ANSI</span></a> sequences support (since <a href="https://techhub.social/tags/win10" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>win10</span></a>) .... OR I attempt to use the native <a href="https://techhub.social/tags/Console" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Console</span></a> <a href="https://techhub.social/tags/API" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>API</span></a> there (using special functions to write in <a href="https://techhub.social/tags/UTF16" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UTF16</span></a> and other special functions to set colors, which would require a major refactoring first 🙄)</p><p><a href="https://github.com/Zirias/dos2ansi/releases/tag/v0.4" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Zirias/dos2ansi/rel</span><span class="invisible">eases/tag/v0.4</span></a></p>
Felix Palmen 📯<p>New pre-release of dos2ansi: v0.2</p><p>* Works on <a href="https://techhub.social/tags/Windows" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Windows</span></a>, win32 binary (cross-compiled on <a href="https://techhub.social/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FreeBSD</span></a>) attached<br>* Selectable input <a href="https://techhub.social/tags/codepage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codepage</span></a> (so far only <a href="https://techhub.social/tags/cp437" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cp437</span></a>, <a href="https://techhub.social/tags/cp850" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cp850</span></a> and <a href="https://techhub.social/tags/cp858" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cp858</span></a>)<br>* Selectable output format, <a href="https://techhub.social/tags/utf8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf8</span></a>, <a href="https://techhub.social/tags/utf16" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf16</span></a> or <a href="https://techhub.social/tags/utf16le" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf16le</span></a>, with or without <a href="https://techhub.social/tags/BOM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BOM</span></a> </p><p>Still a few things to add, e.g. use <a href="https://techhub.social/tags/termcap" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>termcap</span></a>/#terminfo or Windows Console API for "color output" when applicable ... we will see 😎</p><p><a href="https://github.com/Zirias/dos2ansi/releases/tag/v0.2" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Zirias/dos2ansi/rel</span><span class="invisible">eases/tag/v0.2</span></a></p>
Habr<p>[Перевод] Важные аспекты Unicode, о которых должен знать каждый разработчик JavaScript</p><p>Должен признаться: на протяжении очень долгого времени я испытывал страх перед Unicode. Когда была необходимость в работе с Unicode, я предпочитал искать альтернативные пути решения, поскольку не совсем понимал, что делаю. Я старался избегать работы с Unicode до тех пор, пока не столкнулся с проблемой, требующей глубокого понимания этого стандарта, а других вариантов решения просто не было. Приложив определенные усилия, прочитав кучу статей — я постепенно начал понимать что к чему, и это оказалось не так уж трудно. Хотя, некоторые статьи приходилось перечитывать раза по 3. Как оказалось, Unicode — это универсальный и удобный стандарт, но работать с ним может быть непросто из-за множества абстрактных терминов. Если у вас есть пробелы в понимании Unicode, то сейчас самое подходящее время их заполнить! Заварите себе вкусный чай или кофе ☕. И давайте погрузимся в удивительный мир абстракций, символов, астралов (astrals) и суррогатов (surrogates). В этой статье объясняются основные концепции Unicode, которые создадут необходимую базу для работы с ним. Вы также узнаете, как JavaScript взаимодействует с Unicode и какие трудности могут возникнуть на этом пути. А также, каким образом новые функции из ECMAScript 2015 могут помочь в решении этих проблем. Готовы? Давайте начнем!</p><p><a href="https://habr.com/ru/companies/timeweb/articles/785668/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">habr.com/ru/companies/timeweb/</span><span class="invisible">articles/785668/</span></a></p><p><a href="https://zhub.link/tags/timeweb_%D1%81%D1%82%D0%B0%D1%82%D1%8C%D0%B8_%D0%BF%D0%B5%D1%80%D0%B5%D0%B2%D0%BE%D0%B4" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>timeweb_статьи_перевод</span></a> <a href="https://zhub.link/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a> <a href="https://zhub.link/tags/web%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B0" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webразработка</span></a> <a href="https://zhub.link/tags/webdevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdevelopment</span></a> <a href="https://zhub.link/tags/unicode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unicode</span></a> <a href="https://zhub.link/tags/utf16" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf16</span></a> <a href="https://zhub.link/tags/utf8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf8</span></a> <a href="https://zhub.link/tags/%D1%8E%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>юникод</span></a></p>
Habr<p>Суперсемейка против Unicode: Эластика и ее противник гибкий UTF-8</p><p>Кодировка символов – это про то, как символы которыми мы пишем наши сообщения выглядят в двоичном коде. В мире существует множество кодировок, но самые популярные из них, это; ASCII – это самая первая кодировка в мире, она была создана в Америке. Собственно благодаря ей, 8 бит равны 1 байт. UTF-8, 16 и 32 – данные кодировки были созданы организацией Unicode (Юникод). Если по простому, то они это то же самое что и ASCII, но более вместительные, что означает, что они занимают больше памяти. Все бы ничего, легкая тема, но есть одно но – кодировка UTF-8 имеет, как по мне, гениальную особенность: она умеет "растягиваться". То есть адаптироваться под большое кол-во символов.</p><p><a href="https://habr.com/ru/articles/788230/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">habr.com/ru/articles/788230/</span><span class="invisible"></span></a></p><p><a href="https://zhub.link/tags/unicode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unicode</span></a> <a href="https://zhub.link/tags/utf8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf8</span></a> <a href="https://zhub.link/tags/utf16" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf16</span></a> <a href="https://zhub.link/tags/utf32" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf32</span></a> <a href="https://zhub.link/tags/ascii" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ascii</span></a> <a href="https://zhub.link/tags/ram" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ram</span></a> <a href="https://zhub.link/tags/byte" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>byte</span></a> <a href="https://zhub.link/tags/css" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>css</span></a> <a href="https://zhub.link/tags/encode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>encode</span></a> <a href="https://zhub.link/tags/computer_science" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>computer_science</span></a></p>
Inautilo<p><a href="https://mastodon.social/tags/Development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Development</span></a> <a href="https://mastodon.social/tags/Introductions" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Introductions</span></a><br>The minimum developers must know about Unicode in 2023 · What is Unicode, and how do you use UTF-8 correctly? <a href="https://ilo.im/15aq66" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">ilo.im/15aq66</span><span class="invisible"></span></a></p><p>_____<br><a href="https://mastodon.social/tags/WebDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDev</span></a> <a href="https://mastodon.social/tags/Unicode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Unicode</span></a> <a href="https://mastodon.social/tags/Frontend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Frontend</span></a> <a href="https://mastodon.social/tags/Backend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Backend</span></a> <a href="https://mastodon.social/tags/Unicode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Unicode</span></a> <a href="https://mastodon.social/tags/UTF8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UTF8</span></a> <a href="https://mastodon.social/tags/UTF16" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UTF16</span></a></p>
Hapaxia<p>Today is a Unicode day.</p><p><a href="https://mastodon.world/tags/unicode" class="mention hashtag" rel="tag">#<span>unicode</span></a> <a href="https://mastodon.world/tags/utf8" class="mention hashtag" rel="tag">#<span>utf8</span></a> <a href="https://mastodon.world/tags/utf16" class="mention hashtag" rel="tag">#<span>utf16</span></a> <a href="https://mastodon.world/tags/utf32" class="mention hashtag" rel="tag">#<span>utf32</span></a></p>
Jan :rust: :ferris:<p>Huh!?</p><p>I'm trying to open qsv (csv toolkit written in <a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a>) in VSCode and rust-analyzer keeps loading and loading until my 8GB RAM is full. 😬 </p><p>What in the name of Ferris is happening!? :ferris: </p><p>There is a process "cc1plus" that allocates 6GB of RAM! Oh my!</p><p>Oh noes, it's C++!😵 </p><p>Wait, what!? Have I just hit this weird UTF-16 bug in GCC?</p><p><a href="https://stackoverflow.com/questions/29194247/how-to-diagnose-g-error-cc1plus-exe-out-of-memory-allocating-838860800-bytes" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">stackoverflow.com/questions/29</span><span class="invisible">194247/how-to-diagnose-g-error-cc1plus-exe-out-of-memory-allocating-838860800-bytes</span></a></p><p><a href="https://floss.social/tags/OOM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OOM</span></a> <a href="https://floss.social/tags/OutOfMemory" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OutOfMemory</span></a> <a href="https://floss.social/tags/Bug" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Bug</span></a> <a href="https://floss.social/tags/GCC" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GCC</span></a> <a href="https://floss.social/tags/CPlusPlus" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CPlusPlus</span></a> <a href="https://floss.social/tags/UTF16" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UTF16</span></a> <a href="https://floss.social/tags/UTF8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UTF8</span></a> <a href="https://floss.social/tags/Encoding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Encoding</span></a></p>