You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
("hanci" meaning "word" and "hanzi" meaning character.) Where utf8-string->list is:
(define (utf8-string->list a-string)
(define (iter the-string ind result)
(cond [(< ind (string-length the-string))
(display "current character is: ") (display (string-ref the-string ind)) (newline)
(iter the-string (+ ind 1) (cons (string-ref the-string ind) result))]
[else
result]))
(reverse (iter a-string 0 (list))))
This is a procedure, which I created to check what the single characters of the list are and to see if my understanding of how to handle utf8 is correct. The characters being displayed when this code runs are the correct Chinese characters. However, when I check on the website, I get wrong characters. To show what I mean I will add a screenshot:
I can post my whole code (here it is), if needed in a repository. However, I'd like to know, if there is any reason, why awful might/cannot not support unicode characters out of the box in SXML expressions.
Info
OS: Xubuntu 16.04
Chicken Scheme version:
CHICKEN
(c) 2008-2014, The Chicken Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.9.0.1 (stability/4.9.0) (rev 8b3189b)
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
bootstrapped 2014-06-07
The text was updated successfully, but these errors were encountered:
Thanks for the detailed report. I don't know for sure what the cause of the problem is, but it seems to be related to CHICKEN (I can reproduce the issue with the latest version, 4.12.0). I've created a ticket in CHICKEN's bug tracker: http://bugs.call-cc.org/ticket/1374 .
Thanks for that. I am not sure I am using the utf8 extension correctly, as I do not fully understand how use and require-extension and import work yet. However, if you saw no mistake there, maybe I did it right.
I am running a little tutorial project with
awful
, outputting Chinese characters using SXML. For example as follows:I am requiring the utf8 extension:
Then one example part goes as follows:
Where
render-hanci
is:("hanci" meaning "word" and "hanzi" meaning character.) Where
utf8-string->list
is:This is a procedure, which I created to check what the single characters of the list are and to see if my understanding of how to handle utf8 is correct. The characters being displayed when this code runs are the correct Chinese characters. However, when I check on the website, I get wrong characters. To show what I mean I will add a screenshot:
I can post my whole code (here it is), if needed in a repository. However, I'd like to know, if there is any reason, why
awful
might/cannot not support unicode characters out of the box in SXML expressions.Info
OS: Xubuntu 16.04
Chicken Scheme version:
The text was updated successfully, but these errors were encountered: