| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi to all.I want to make a simple text editor like notepad.I am using realbasic for about 4 months but i have a good background on visual basic.Anyway the problem is that the text files that i save with realbasic dont appear as they supposed to in notepad.I understand that this is an encoding problem but i tried almost all the methods of changing the encoding from utf-8 to windows ansi.I still get the same result.All i want to do is to save the text file and then display it right in notepad.I know that the default encoding notepad uses is windows-ansi but no matter what way i choose to encode the text nothing seems to change.Any suggestions? |
|
#2
| |||
| |||
| On Aug 11, 7:01*am, mid <pan.d...@gmail.com> wrote: > Hi to all.I want to make a simple text editor like notepad.I am using > realbasic for about 4 months but i have a good background on visual > basic.Anyway the problem is that the text files that i save with > realbasic dont appear as they supposed to in notepad.I understand that > this is an encoding problem but i tried almost all the methods of > changing the encoding from utf-8 to windows ansi.I still get the same > result.All i want to do is to save the text file and then display it > right in notepad.I know that the default encoding notepad uses is > windows-ansi but no matter what way i choose to encode the text > nothing seems to change.Any suggestions? Actually, notepad guesses at the encoding based on certain search heuristics. There are a few good blog articles about the topic (and fun ways you can screw it up). I would try saving the text file as UTF-16, since that's a bit more native to Windows -- you can even put a byte order mark in first if you really want to get it right. ~Aaron |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.