Print Page | Close Window

Problems with Unicode

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=13473
Printed Date: 26 June 2024 at 5:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problems with Unicode
Posted By: smoreno
Subject: Problems with Unicode
Date 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.



Replies:
Posted By: smoreno
Date 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.


Posted By: braian87b
Date 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


Posted By: smoreno
Date 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.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net