Re: UTF-8 strings and endianness

2012-10-30 Thread Jesse Phillips
On Monday, 29 October 2012 at 15:22:39 UTC, Adam D. Ruppe wrote: UTF-8 isn't affected by endianness. If this is true why does the BOM have marks for big and little endian? http://en.wikipedia.org/wiki/Byte_order_mark#Representations_of_byte_order_marks_by_encoding

Re: UTF-8 strings and endianness

2012-10-30 Thread Tobias Pankrath
On Tuesday, 30 October 2012 at 17:12:41 UTC, Jesse Phillips wrote: On Monday, 29 October 2012 at 15:22:39 UTC, Adam D. Ruppe wrote: UTF-8 isn't affected by endianness. If this is true why does the BOM have marks for big and little endian?

Re: UTF-8 strings and endianness

2012-10-30 Thread Dmitry Olshansky
10/30/2012 5:17 PM, Tobias Pankrath пишет: On Tuesday, 30 October 2012 at 17:12:41 UTC, Jesse Phillips wrote: On Monday, 29 October 2012 at 15:22:39 UTC, Adam D. Ruppe wrote: UTF-8 isn't affected by endianness. If this is true why does the BOM have marks for big and little endian?

Re: UTF-8 strings and endianness

2012-10-30 Thread Jesse Phillips
On Tuesday, 30 October 2012 at 17:17:36 UTC, Tobias Pankrath wrote: On Tuesday, 30 October 2012 at 17:12:41 UTC, Jesse Phillips wrote: On Monday, 29 October 2012 at 15:22:39 UTC, Adam D. Ruppe wrote: UTF-8 isn't affected by endianness. If this is true why does the BOM have marks for big and

UTF-8 strings and endianness

2012-10-29 Thread denizzzka
Hi! How to convert D's string to big endian? How to convert to D's string from big endian?

Re: UTF-8 strings and endianness

2012-10-29 Thread Adam D. Ruppe
UTF-8 isn't affected by endianness.

Re: UTF-8 strings and endianness

2012-10-29 Thread Jordi Sayol
Al 29/10/12 16:17, En/na denizzzka ha escrit: Hi! How to convert D's string to big endian? How to convert to D's string from big endian? UTF-8 is always big emdian. -- Jordi Sayol

Re: UTF-8 strings and endianness

2012-10-29 Thread denizzzka
On Monday, 29 October 2012 at 15:22:39 UTC, Adam D. Ruppe wrote: UTF-8 isn't affected by endianness. Ok, thanks!

Re: UTF-8 strings and endianness

2012-10-29 Thread denizzzka
On Monday, 29 October 2012 at 15:46:43 UTC, Jordi Sayol wrote: Al 29/10/12 16:17, En/na denizzzka ha escrit: Hi! How to convert D's string to big endian? How to convert to D's string from big endian? UTF-8 is always big emdian. Yes. (I thought that the problem in this place but the

Re: UTF-8 strings and endianness

2012-10-29 Thread denizzzka
On Monday, 29 October 2012 at 15:46:43 UTC, Jordi Sayol wrote: Al 29/10/12 16:17, En/na denizzzka ha escrit: Hi! How to convert D's string to big endian? How to convert to D's string from big endian? UTF-8 is always big emdian. oops, what? Q: Is the UTF-8 encoding scheme the same

strings and endianness

2012-01-18 Thread Johannes Pfau
I'm currently finishing std.uuid (see http://prowiki.org/wiki4d/wiki.cgi?ReviewQueue ). For name based hashes, a name string is passed to a hash function and I need to make sure that the resulting hash is the same on both little endian and big endian systems. So what's needed to convert a

Re: strings and endianness

2012-01-18 Thread Jonathan M Davis
On Wednesday, January 18, 2012 20:40:33 Johannes Pfau wrote: I'm currently finishing std.uuid (see http://prowiki.org/wiki4d/wiki.cgi?ReviewQueue ). For name based hashes, a name string is passed to a hash function and I need to make sure that the resulting hash is the same on both little

Re: strings and endianness

2012-01-18 Thread Johannes Pfau
Jonathan M Davis wrote: On Wednesday, January 18, 2012 20:40:33 Johannes Pfau wrote: I'm currently finishing std.uuid (see http://prowiki.org/wiki4d/wiki.cgi?ReviewQueue ). For name based hashes, a name string is passed to a hash function and I need to make sure that the resulting hash is

Re: strings and endianness

2012-01-18 Thread Jonathan M Davis
On Wednesday, January 18, 2012 21:42:51 Johannes Pfau wrote: Jonathan M Davis wrote: Section 4.1.2. indeed says that it uses big endian. However, I should still be able to use a ubyte[16] representation and just make sure that those bytes are equal to the big endian representation. Thinking