From: Eric <er...@ma...> - 2009-07-08 19:00:31
|
Dear all, I have written the following program: import Graphics.UI.WX main = start $ do f <- frame [text := "Traqer"] p <- panel f [] t <- textCtrl p [text := "\x3008\x3009", clientSize := sz 300 300] set f [layout := container p $ fill $ widget t, clientSize := sz 400 400] return() However a box appears instead of the unicode characters '\x3008' and '\x3009'. Does wxhaskell not support these unicode characters? |
From: Eric <er...@ma...> - 2009-07-08 19:13:49
|
Eric Kow wrote: > > Is your wxWidgets compiled with --enable-unicode? > I don't know - I'm using the binary that came with the Windows distribution... |
From: Eric K. <eri...@gm...> - 2009-07-08 19:26:53
|
On Wed, Jul 08, 2009 at 19:38:50 +0100, Eric wrote: > import Graphics.UI.WX > > main = start $ do > f <- frame [text := "Traqer"] > p <- panel f [] > t <- textCtrl p [text := "\x3008\x3009", clientSize := sz 300 300] > set f [layout := container p $ fill $ widget t, clientSize := sz 400 400] > return() Thanks for including a minimal example! When I run this, I see something that looks like open and close brackets, which I bet is what you were expecting. Is your wxWidgets compiled with --enable-unicode? Thanks, -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |
From: Eric K. <eri...@gm...> - 2009-07-08 19:27:38
Attachments:
UTF8Sampler.hs
UTF8.lhs
|
On Wed, Jul 08, 2009 at 20:13:35 +0100, Eric wrote: > I don't know - I'm using the binary that came with the Windows > distribution... Hmm, I'm afraid I can't help much there. I imagine it's either an issue with the fonts or the distribution, as I have the Unicode stuff working fine on my Linux box. I'll attach the code to UTF8Sampler if it helps (this is in the darcs repository, but for some reason, it was omitted from the distribution, probably an oversight). Maybe other Windows users have experience to comment? -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |
From: Eric K. <eri...@gm...> - 2009-07-08 19:29:21
Attachments:
utf-tests
|
On Wed, Jul 08, 2009 at 20:27:30 +0100, Eric Kow wrote: > I'll attach the code to UTF8Sampler if it helps (this is in the > darcs repository, but for some reason, it was omitted from the > distribution, probably an oversight). Whoops, you'll want this file too -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |
From: Jaap v. d. W. <ja...@wi...> - 2009-07-09 07:50:09
|
Windows experience with non-Ascii symbols: I tried to print the suits (\x03 through \x06) for a buttoned solitair game. It didn't work. They do appear on the teletype ghc console, but on the wx buttons only boring squares are printed. Did I compile wx Widgets ... I don't know, and I don't want to know. Jaap van der Woude On Wed, 2009-07-08 at 20:27 +0100, Eric Kow wrote: > On Wed, Jul 08, 2009 at 20:13:35 +0100, Eric wrote: > > I don't know - I'm using the binary that came with the Windows > > distribution... > > Hmm, I'm afraid I can't help much there. > > I imagine it's either an issue with the fonts or the distribution, > as I have the Unicode stuff working fine on my Linux box. > > I'll attach the code to UTF8Sampler if it helps (this is in the > darcs repository, but for some reason, it was omitted from the > distribution, probably an oversight). > > Maybe other Windows users have experience to comment? > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ wxhaskell-users mailing list wxh...@li... https://lists.sourceforge.net/lists/listinfo/wxhaskell-users -- Jaap van der Woude <ja...@wi...> |
From: Eric <er...@ma...> - 2009-07-08 21:15:02
|
Eric Kow wrote: > On Wed, Jul 08, 2009 at 20:13:35 +0100, Eric wrote: > >> I don't know - I'm using the binary that came with the Windows >> distribution... >> > > Hmm, I'm afraid I can't help much there. > > I imagine it's either an issue with the fonts or the distribution, > as I have the Unicode stuff working fine on my Linux box. > > I'll attach the code to UTF8Sampler if it helps (this is in the > darcs repository, but for some reason, it was omitted from the > distribution, probably an oversight). > Thanks. I've run the UTF8Sampler - Some stuff appears but no Chinese, Korean, Tibetan, Mongolian or Japanese characters. |
From: Eric Y. K. <eri...@gm...> - 2009-07-08 21:23:08
|
On Wed, Jul 08, 2009 at 22:14:47 +0100, Eric wrote: > Thanks. I've run the UTF8Sampler - Some stuff appears but no Chinese, > Korean, Tibetan, Mongolian or Japanese characters. By any chance, could it just be a matter of fonts? -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |