hello all can anyone help me in finding the code for decompress the unicode to 7bit ascii thanx
A:
A simple example below:
try
{
System.IO.TextWriter writeFile = new StreamWriter("c:\\textwriter.txt",false,Encoding.UTF7);
writeFile.WriteLine("example text here");
writeFile.Flush();
writeFile.Close();
writeFile = null;
}
catch (IOException ex)
{
MessageBox.Show(ex.ToString());
}
Xander
2009-11-26 11:20:14
This allows you to write to UTF-7, the string can be in any encoding i believe
Xander
2009-11-26 11:21:36
NOTE: If there are some characters in the string that is not supppored by UTF-7, it will be lost
Xander
2009-11-26 11:22:11
Looks rather more Java than C++ to me.
Kylotan
2009-11-26 11:51:04
@Kylotan, I was thinking it looked more like C#, but same point: OP wanted a C++ answer.
mrduclaw
2009-11-26 11:57:30
@Xander: UTF-7 is a Unicode encoding, like the UTF-16 used by .Net. Now there are characters outside of Unicode (Klingon for instance) but you can't lose those by converting between different Unicode representations.
MSalters
2009-11-26 13:33:01