[squeak-dev] ASN1 encoding of UTF8

Alan Pinch alan.c.pinch at gmail.com
Wed Sep 20 21:15:39 UTC 2017


Excellent! My regards, now a working ASN1UTF8StringType test


testConstructedUTF8String

     | bytes obj testObj |
     bytes := #[12 30 66 106 195 182 114 110 45 84 104 97 100 100 195 
164 117 115 32 68 195 188 110 103 101 114 115 116 114 97 195 159].
     testObj := 'Björn-Thaddäus Düngerstraß'.
     obj := ASN1InputStream decodeBytes: bytes.
     self assert: (obj = testObj).


On 09/20/2017 04:33 PM, Jakob Reschke wrote:
> 'Björn-Thaddäus Düngerstraß' squeakToUtf8 asByteArray
> => #[66 106 195 182 114 110 45 84 104 97 100 100 195 164 117 115 32 68
> 195 188 110 103 101 114 115 116 114 97 195 159].

-- 
Thank you for your consideration, Alan


More information about the Squeak-dev mailing list