🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #308381

Re: utf8 to utf16

#308381
From: Wiktor S.
Date: Mon, 11 Apr 2016 11:24
12 lines
1233 bytes
> akurat konwersja utf8<-->utf16 powinna być na tyle prosta, że nie
> jestem przekonany czy ciągnięcie jakiejś biblioteki tylko do tego ma
> sens

Prosta, ale łatwo zrobić to źle.

Prawidłowo robi się to w kolejności UTF8 -> UTF32 -> UTF16, i odwrotnie 
UTF16 -> UTF32 -> UTF8.


-- 
Wiktor S.
Technical Details
Message-ID: <neg1h5$g0r$1@usenet.news.interia.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.interia.pl!not-for-mail
References: <88b3e9e8-bd61-4861-9742-0cbf3acb4fc2@googlegroups.com> <op.yfmjo3p1hilul8@asus7h.mshome.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.interia.pl!not-for-mail
From: "Wiktor S." <wswiktorSP@Mpoczta.fm>
Newsgroups: pl.comp.lang.c
Subject: Re: utf8 to utf16
Date: Mon, 11 Apr 2016 13:24:24 +0200
Organization: INTERIA.PL S.A.
Lines: 13
Message-ID: <neg1h5$g0r$1@usenet.news.interia.pl>
References: <88b3e9e8-bd61-4861-9742-0cbf3acb4fc2@googlegroups.com> <op.yfmjo3p1hilul8@asus7h.mshome.net>
NNTP-Posting-Host: user-164-127-194-115.play-internet.pl
Mime-Version: 1.0
X-Trace: usenet.news.interia.pl 1460373861 16411 164.127.194.115 (11 Apr 2016 11:24:21 GMT)
X-Complaints-To: usenet@firma.interia.pl
NNTP-Posting-Date: Mon, 11 Apr 2016 11:24:21 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit