Welcome to Web-News
A Web-based News Reader
Subject UTF-8 issues
From Eldar Insafutdinov <e.insafutdinov@mail.ru>
Date Mon, 15 Sep 2008 14:16:51 -0400
Newsgroups digitalmars.D

I faced some issues with utf-8 support in D.
As it stated in http://www.digitalmars.com/d/2.0/cppstrings.html strings support slicing and length-calculation. Since strings are char arrays this is correct only for latin strings. So when the strings for example cyrillic chars - length is wrong, indexing also doesn't work, and slicing too.
But foreach works correctly. So utf-8 support is partial. Maybe there are functions from standart library that does this work? I checked D2 new features - there was not improving utf-8 support - am I wrong?

Recent messages in this thread
 
-# UTF-8 issues (Current message) Eldar Insafutdinov 15-Sep-2008 02:16 pm
.|# Re: UTF-8 issues Walter Bright 15-Sep-2008 02:37 pm
.-# Re: UTF-8 issues Chris R. Miller 15-Sep-2008 02:38 pm
.|-# Re: UTF-8 issues Jarrett Billingsley 15-Sep-2008 04:41 pm
.|.-# Re: UTF-8 issues Lutger 16-Sep-2008 04:57 pm
.|..\# Re: UTF-8 issues Jarrett Billingsley 16-Sep-2008 06:05 pm
.-# Re: UTF-8 issues Benji Smith 16-Sep-2008 12:53 am
..-# Re: UTF-8 issues Eldar Insafutdinov 16-Sep-2008 01:53 am
...|# Re: UTF-8 issues Benji Smith 16-Sep-2008 02:42 am
...\# Re: UTF-8 issues Oskar Linde 16-Sep-2008 03:00 am