Using 7r1 on 10.4.8 (Intel). I am having an encoding problem and could really use some help. I will try to explain the issue as clearly as possible, but it confuses me, so I may not be successful. Any assistance is appreciated.
I have an application that reads in a text file and puts the contents in a listbox such that one line of the file is one row in the listbox. I then allow the user to drag rows from that listbox to a second listbox where magic happens and a slide (canvas) is created in a thumbnail view with the text from the drag-and-drop on the 'slide'. Hopefully that makes sense. The text for the slide is made up of the text from a popup, and the text from the row in the listbox. My problem is that the text is getting munged when it gets displayed on the slide (drawn using DrawString). If I step through the application the dropped text, displays incorrectly in the variable list, but correctly if I drill into that specific variable. Incorrectly means something like this: 2Kng?? (should be 2 Kings) Where the ?? could be anything, but most often a random(?) oriental character, an empty space, or other random odd character (like a delta). To make things more weird, the incorrect characters change each time I 'step' through lines of code. If I drill to the specific variable, I'm told the encoding is UTF-8 which is what I want it to be. In this particular example the length is reported as 7 and the lengthB as 14. This information does not change (the encoding is always UTF-8, and the lengths don't change), and the debugger view shows the text properly, but when I send the text to Drawstring it comes out whacked. I think I've covered my bases as far as ensuring the encoding is right, but something is obviously messed up. Can anybody tell me where I've gone wrong? -- David Glass - Gray Matter Computing graymattercomputing.com - corepos.com 559-303-4915 Apple Certified Help Desk Specialist _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
