Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Syntax Edit
  New Posts New Posts RSS Feed - Problems with Unicode
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problems with Unicode

 Post Reply Post Reply
Author
Message
smoreno View Drop Down
Newbie
Newbie


Joined: 21 January 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote smoreno Quote  Post ReplyReply Direct Link To This Post Topic: Problems with Unicode
    Posted: 23 February 2009 at 5:44am
Product: Xtreme SyntaxEdit (ActiveX) version 12.1.1
Platform: Windows Vista (64bit) - SP 1
Language: C++

Hello! I'm testing my SyntaxEdit application and I have found two rare cases:

If I open a file containing the sentence: "hola mundo" via TSyntaxEdit OpenFile(), I could see the word: "潨慬洠湵潤" into the editor. (OCX Unicode version)
If I open a file containing the sentence: "hola mundo" via TSyntaxEdit OpenFile(), I could see the word: "?????" into the editor. (OCX ASCII version)

If I save the editor content in a plain text file via TSyntaxEdit SaveFileAs() and I open this file, I could see FF FE before the word "hola" (editing in hexadecimal mode).

I haven't been able to find other sentences that produce similar errors.

Can anybody tell my what is happening, please?

Thanks in advance.
Back to Top
smoreno View Drop Down
Newbie
Newbie


Joined: 21 January 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote smoreno Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2009 at 4:28am
Hi!

Doing more testing I have realised that my problem happens when the first word I write has an even number of letters and the second word has an odd number of letters, for example "aaaa bbbbb" or "aa b".

I think the editor doesn't know how to represent this words (ASCII, UTF8, UTF16,...).

Thanks.
Back to Top
braian87b View Drop Down
Groupie
Groupie


Joined: 01 April 2008
Location: Argentina
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote braian87b Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2009 at 11:43am
Hi smoreno... yo hablo español si lo deséas... (i talk in spanish if you like)

read a little about the unicode treatments in software applications
leé un poco mas acerca del como se maneja el unicode en los programas

here is an example..: http://www.bridgetonova.com/2007/09/truth-of-bsh-hid-facts.html
aqui tenés un ejemplo..: http://www.bridgetonova.com/2007/09/truth-of-bsh-hid-facts.html

search more in google about "unicode" or "bush hid the facts explain"
busca mas en google acerca de "unicode" o "bush hid the facts explain"

Greetings
Saludos!


Product: Xtreme SuitePro (ActiveX) version 11.
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 SP 6
Spanish, Español, English.
Argentina
Back to Top
smoreno View Drop Down
Newbie
Newbie


Joined: 21 January 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote smoreno Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2009 at 12:17pm

First of all, thank you very much for your help.

I have tried with sentences like "bush hid the facts" or "this app can break" and the SyntaxEditor works fine.

I think the problem is related to this but it isn't exactly the same. I'm going to continue reading about this problem.

Greetings!

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ante todo, muchas gracias por tu ayuda.

He probado con la frase "bush hid the facts" o "this app can break" y el SyntaxEdit funciona correctamente.

Creo que el error está relacionado con eso pero no acaba de coincidir exactamente. Seguiré leyendo sobre el problema con las pistas que me has dado.

Gracias de nuevo y un saludo.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.