[squeak-dev] Unicode method returns "?"
Bert Freudenberg
bert at freudenbergs.de
Sat Nov 25 00:55:38 UTC 2017
On Sat 25. Nov 2017 at 01:38, John-Reed Maffeo <jrmaffeo at gmail.com> wrote:
> The problem I am trying to debug occurs in the method #unescapeUnicode
> while parsing data from a JSON stream at a web address using the JSON
> package tonyg.39. I have decomposed the problem to a repeatable test case:
>
> Unicode value: (Integer readFrom: '2019' readStream base: 16)
> >> I expect to see a right single quote mark, but a question mark is
> returned. I have to tried to debug this statement, but I don't understand
> the code. I also get question marks when I use other decimal numbers: 2000
> to: 2030 do:[ :each | Transcript show: (Unicode charFromUnicode: each)]
>
Are you sure the font you are using to display those characters does have
glyphs for them? Otherwise they will be displayed as question marks.
- Bert -
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20171125/2d9b467a/attachment.html>
More information about the Squeak-dev
mailing list
|