Displaying 3 results from an estimated 3 matches for "u0242".
Did you mean:
0242
2016 Jul 07
2
String encoding problem
If you print:
"\xc9\x82\xbf"
you get
"\u0242\xbf"
But if you try and evaluate that string you get:
> "\u0242\xbf"
Error: mixing Unicode and octal/hex escapes in a string is not allowed
(Probably will only happen on mac/linux with default utf-8 encoding)
Hadley
--
http://hadley.nz
2016 Jul 07
2
String encoding problem
On Thu, Jul 7, 2016 at 10:11 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 07/07/2016 10:57 AM, Hadley Wickham wrote:
>>
>> If you print:
>>
>> "\xc9\x82\xbf"
>>
>> you get
>>
>> "\u0242\xbf"
>>
>> But if you try and evaluate that string you get:
>>
>>> "\u0242\xbf"
>>
>> Error: mixing Unicode and octal/hex escapes in a string is not allowed
>>
>> (Probably will only happen on mac/linux with default utf-8 encoding)...
2016 Jul 07
0
String encoding problem
..., 2016 at 10:11 AM, Duncan Murdoch
> <murdoch.duncan at gmail.com> wrote:
>> On 07/07/2016 10:57 AM, Hadley Wickham wrote:
>>>
>>> If you print:
>>>
>>> "\xc9\x82\xbf"
>>>
>>> you get
>>>
>>> "\u0242\xbf"
>>>
>>> But if you try and evaluate that string you get:
>>>
>>>> "\u0242\xbf"
>>>
>>> Error: mixing Unicode and octal/hex escapes in a string is not allowed
>>>
>>> (Probably will only happen on mac/...