encoding problem.Utf8 to windows ansi.

This is a discussion on encoding problem.Utf8 to windows ansi. within the basic.visual forums in Programming Languages category; 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 ...

Go Back   Application Development Forum > Programming Languages > basic.visual

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-11-2008, 10:01 AM
mid
Guest
 
Default encoding problem.Utf8 to windows ansi.

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?
Reply With Quote
  #2  
Old 08-19-2008, 12:17 AM
Aaron Ballman
Guest
 
Default Re: encoding problem.Utf8 to windows ansi.

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
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:31 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.