Jump to content


Photo

what happens with unicode ??


  • Please log in to reply
38 replies to this topic

#1 user22

user22
  • Members
  • 192 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 02 June 2007 - 08:25 PM

Hello Boki,

i discovered that a character is not displayed correct. It should be an "u" with a little ring on top (it is in Lucida Sans Unicode the 2. character in the 16. row in the character table of the system programs, code U+016F). But i see only a normal "u". Displaying the same value in another component from another company shows the right caracter. So i am sure it is an error in NextGrid. But i don't know if this was always the same or if it is a new problem now in 3.9.9.b.
I wonder what you are doing with unicode, because TNT is not longer free - have you eleminated or changed unicode support in your components?

thanks,
user22

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

Posted 02 June 2007 - 08:40 PM

Hello,

Problem is most probably because you have edit cell without TNT editors support, or maybe Column Font is not set to Lucida Sans too.

I have create 2 columns, place NextGrid on form, and one TTntEdit component.

When I click on button, Text from Edit is set to selected cell, and correct "ů" character is displayed. Please look for sample in attach: Attached File  User22.zip   339.12KB   11 downloads

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

Posted 02 June 2007 - 08:43 PM

PS. please note that this sample project require TNT Controls.

I will try to add native support for unicode in my Edit controls in next period.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 user22

user22
  • Members
  • 192 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 03 June 2007 - 12:42 PM

Hello Boki,

thank you for the fast answer - glad to see that you still support unicode. I tested your demo and it works. But i use the free nextgrid for D7 and so i cannot enable or disable something, i can only use it and i remember that the free nextgrid supported unicode very well. And i have no edit fields, i only need to display unicode strings in the grid (yes, i use WideCells[] for assignment) nothing else. Maybe you disabled it in the free 3.99b for D7?

thanks,
user22

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

Posted 03 June 2007 - 01:05 PM

Hello User22,

I didn't disable anything in free version of NextGrid. This is how was been before smile.gif

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#6 am2

am2
  • Members
  • 31 posts

Posted 15 July 2008 - 03:32 AM

Hello Boki,

i've downloaded your sample User22.zip, enabled goInput, entered some non-English characters pressed Enter and got bad result (as you can see on the picture in the attachment), after that I entered the same characters into the tnt edit box, pressed the button and got the correct result - I've got the same problem in one of my programs. I'm using the free version of NextGrid for displaying/entering/changing data from a simple SQLite database. Is this a bug, or I missed something?

PS. Sorry for my bad English, I'm still learning...

Attached Files



#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

Posted 15 July 2008 - 10:52 AM

Hello,

Maybe Tnt unicode controls are not supported. More info at: http://dn.bergsoft.n...laceeditors.htm

Please tell me if this helps.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#8 am2

am2
  • Members
  • 31 posts

Posted 15 July 2008 - 11:18 AM

QUOTE (Boki (Berg) @ Jul 15 2008, 11:52 AM) <{POST_SNAPBACK}>
Hello,

Maybe Tnt unicode controls are not supported. More info at: http://dn.bergsoft.n...laceeditors.htm

Please tell me if this helps.

Best regards


Hello Boki,

I've installed tnt unicode controls, and enabled tnt support in NxSuite.inc already. After entering non-English characters through the input field and enabling editing with goEditing, the characters are displayed well with inplace editor:

Attached Files



#9 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

Posted 15 July 2008 - 11:56 AM

Hello Am2,

I assume that now all works fine smile.gif

Kind regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#10 am2

am2
  • Members
  • 31 posts

Posted 15 July 2008 - 12:01 PM

Hello again,

I've just discovered, that after entering some non-English chars into the tnt edit box and pressing the button they're displayed well with NextGrid, but if I open the inplace editor, I get bad results again:

Attached Files



#11 am2

am2
  • Members
  • 31 posts

Posted 15 July 2008 - 12:03 PM

QUOTE (Boki (Berg) @ Jul 15 2008, 12:56 PM) <{POST_SNAPBACK}>
Hello Am2,

I assume that now all works fine smile.gif

Kind regards


Hello Boki,

unfortunatelly not, the inplace editor is displaying the chars well, but NextGrid isn't.

#12 am2

am2
  • Members
  • 31 posts

Posted 15 July 2008 - 12:09 PM

QUOTE (am2 @ Jul 15 2008, 01:03 PM) <{POST_SNAPBACK}>
Hello Boki,

unfortunatelly not, the inplace editor is displaying the chars well, but NextGrid isn't.


Hello Boki,

I've got some conclusions:

1. If I enter some none-English chars through the Input line, they aren't displayed well in NextGrid, but they're displayed well in the inplace editor
2. If I enter some none-English chars through the tnt editor and copy them into NextGrid, they're displayed well in NextGrid, but not in the inplace editor

Is there any solution?

#13 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

Posted 15 July 2008 - 12:28 PM

Hello,

Maybe font for column is not set to some unicode font such as Tahoma, Verdana. If you also like, you may send me small demo project to I test it.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#14 am2

am2
  • Members
  • 31 posts

Posted 15 July 2008 - 12:40 PM

QUOTE (Boki (Berg) @ Jul 15 2008, 01:28 PM) <{POST_SNAPBACK}>
Hello,

Maybe font for column is not set to some unicode font such as Tahoma, Verdana. If you also like, you may send me small demo project to I test it.

Best regards


Hello Boki,

I am using your sample User22.zip for testing, I've just enabled goInput and goEditing and nothing more. It uses Lucida Sans Unicode font. Here is the modified demo project:

Attached Files



#15 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

Posted 15 July 2008 - 12:57 PM

Hello Am2,

It seems to all work fine, here is a screenshot. Even if you type characters within Input Line:

Attached Files


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#16 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

Posted 15 July 2008 - 12:59 PM

PS. I am sending you exe to try it too.

Attached Files


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#17 am2

am2
  • Members
  • 31 posts

Posted 15 July 2008 - 01:56 PM

QUOTE (Boki (Berg) @ Jul 15 2008, 01:59 PM) <{POST_SNAPBACK}>
PS. I am sending you exe to try it too.


Hello Boki,

Thank you for your answers! Your exe is working well, but mine isn't. I've just reinstalled NextGrid and got a massege about unicode controls - they're enabled, but still nothing. I'm sending you my exe, please check it yourself.

Attached Files



#18 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

Posted 15 July 2008 - 02:03 PM

Hello Am2,

Then only thing may be that you are using older version of NextGrid. Can you please try to download latest one and try once again.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#19 am2

am2
  • Members
  • 31 posts

Posted 15 July 2008 - 02:07 PM

QUOTE (Boki (Berg) @ Jul 15 2008, 03:03 PM) <{POST_SNAPBACK}>
Hello Am2,

Then only thing may be that you are using older version of NextGrid. Can you please try to download latest one and try once again.

Best regards


Hello Boki,

I'm using the latest version 4.4.5 of NextGrid.

#20 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

Posted 15 July 2008 - 02:41 PM

Hello Am2,

I see no reason why this happen, it should work fine. Try once again to delete _ in NxSuite.inc file beside DEFINE TNTUNICODE. I really see no reason why this may happen.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users