mail-archives/gtk-sharp-list/2004-February/003478.html

62 строки
2.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Invalid UTF8 string
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:miguel%40ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="003471.html">
<LINK REL="Next" HREF="003472.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Invalid UTF8 string
</H1>
<B>Miguel de Icaza
</B>
<A HREF="mailto:miguel%40ximian.com"
TITLE="[Gtk-sharp-list] Invalid UTF8 string">miguel@ximian.com
</A><BR>
<I>Sun, 22 Feb 2004 12:28:20 -0500</I>
<P><UL>
<LI> Previous message: <A HREF="003471.html">[Gtk-sharp-list] Invalid UTF8 string
</A></li>
<LI> Next message: <A HREF="003472.html">[Gtk-sharp-list] Invalid UTF8 string
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3478">[ date ]</a>
<a href="thread.html#3478">[ thread ]</a>
<a href="subject.html#3478">[ subject ]</a>
<a href="author.html#3478">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hello,
&gt;<i> Ok, but how do I convert to UTF8, for example, from a char that I receive=
</I> from=20
&gt;<i> a KeyPressEvent when I press the &quot;=E7&quot; key? :)
</I>
Well, if it is an 8-bit char, you need to use the Encoding class
(UTF8.Encode) to get the Unicode string.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="003471.html">[Gtk-sharp-list] Invalid UTF8 string
</A></li>
<LI> Next message: <A HREF="003472.html">[Gtk-sharp-list] Invalid UTF8 string
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3478">[ date ]</a>
<a href="thread.html#3478">[ thread ]</a>
<a href="subject.html#3478">[ subject ]</a>
<a href="author.html#3478">[ author ]</a>
</LI>
</UL>
</body></html>