Can you provide an example of what goes in, what comes out, and what's going wrong?
I searched a little bit more on the problem I have.
So the situation is as follow:
I have a text sprite member on my stage (T_SlideOutputText)
This is just my container for showing text. Now I put html data in it by member("T_SlideOutputText").html = (my html text) <htm><body>"blablabla"</body></html>
Now the real problem is that for some characters (like é " ) it gives me in the html an invalid value.
I looked deeper in the problem and now it seems that even getting my text from the xml giving me a problem.
The moment I decrypt my xml file and try to read it the output is almost entirly correct except that some characters give me a question mark.
I read the output when there was nothing done with the file (so just reading the file without parsing or anything else give me)
How can just reading a file without doing anything give me a question mark ?
This is offcourse the problem because that inforamtion will send to html so offcourse my html is not correct.
(the question mark in the file is a ' )
What can be the problem ?
I tried enter these characters in html editor dreamweaver and there it is no problem showing these in the webbrowser.
A solution is entering for these characters " ... in the xml (that I read for entering in my html).
But because there are a lot of different xml it is just not possible to replace all special characters.
Now I think the problem needs to be in the html parser of Director. How does Director show the html ? What does it use for showing special characters ? Do I need special font embedding ?
These are all question you practicly not find on the internet. Even the fonts are like hell in Director.
P.S. When I start my project, Director tells me a font is missing and need to replace it by another font (can that be the problem)
Which version of Director are you using?
Adobe Director 11.5
And I use the DataSafe Xtra for encrypting and decrypting my data.
I don't know this xtra (DataSafe), but was it compiled for D11+, or for D10 and below? Otherwise, it won't be unicode aware and will perhaps struggle with high ASCII characters (which appears to be your problem). Where in your process is this xtra involved (you refer to decryption). Is there another xtra you could use? How dependent are you on encrypting/decrypting data? Have you tried another xtra, like Valentin's crypto xtra?
Yes I think it was compiled in a much older version of Director (I don't know wich but is certainly older than version 10).
The problem is that I need to rework some parts of the program wich is wrote in 2007.
The DataSafe extra is just need to decrypt and encrypt (I don't think the problem is there because the written encrypted data contains every value).
I think the unicode aware will most likely be the problem.
Do you know how I can solve this problem ?
Test a different xtra for encryption/decryption, like the one I suggested. Or try your program without encrypting/decrypting and see if this makes a difference (i.e. don't use the xtra)
Check if the XML header (<?xml version="1.0" encoding="UTF-8"?>) and XML file encoding is UTF-8. Many text editors set file encoding to ANSI (or other non UTF or Unicode format) by default. If you are working on Windows open your XML file in Notepad and “Save As” with UTF-8 encoding. I used to have the same problem some years ago. Buddy File is a great and easy file Xtra and has BlowFish encryption functions.
I hope this helps you.
Thank you very much !
It was indeed just saving the file in UTF-8.
Now I just need to figure out the encryption and then all the problems are solved.
I will try to use Buddy File
Again thank you very much (I would never found it)
My pleasure!!! Have a nice coding.