473,782 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get the right character set / language to show in a RichTextBox?

MJB
I'm new to unicode and language issues. Basically I have a RichTextBox and
I'm filling it with a string that could be any number of different
languages. Sometimes the characters show up correctly - ie Chinese, Korean,
etc, but sometimes they just show up as junk. If I know what the language
it is supposed to be, is there any way I can select the proper codepage
and/or encoding? I'm using C# btw.

TIA
Jul 21 '05 #1
0 1418

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3969
by: Chris | last post by:
Using VB6. With a RichTextbox, I can get the position of the character under the mouse pointer with an API call like: SendMessage(hWnd, EM_CHARFROMPOS, 0&, Pointl) by passing the mouse x,y co-ordinates in the Pointl structure. But does anyone know a way to get the *attributes* of the character (Bold, Underline, etc) WITHOUT affecting the textbox in any way? Any method that requires the character to be the selected text (like
2
11608
by: Thejan Mendis | last post by:
Hi all, I need to check whether my richtextbox contain any blank line. the source I try to used in below. but it not reflect the output I need. basically I need the collect the paragraph by paragraph text in a the rich text box to a string array. THEJAN
0
1425
by: MJB | last post by:
I'm new to unicode and language issues. Basically I have a RichTextBox and I'm filling it with a string that could be any number of different languages. Sometimes the characters show up correctly - ie Chinese, Korean, etc, but sometimes they just show up as junk. If I know what the language it is supposed to be, is there any way I can select the proper codepage and/or encoding? I'm using C# btw. TIA
2
2445
by: Just Me | last post by:
I insert text in a RichTextBox ending each line with vbCrLf. I think when I search the RichTextBox text I do not find any CR's. In the Text property is the end of line char a LineFeed? Are the Cd's discared? What is it in a file?
0
1520
by: Sakharam Phapale | last post by:
Hi All, How to get the starting and end character position of the given line no in RichTextBox? I have written following code but it takes more time. Is there any RichTextBox function or API function which gives that? Private Sub SetLineStartEndPosition(ByVal myRichTextBox as RichTextBox, ByVal LineNo As Integer, ByRef StartPosition As Integer, ByRef EndPosition As Integer)
0
4164
by: John Smith | last post by:
I have text files and I get binary offsets of text portion of these files from VB6 program with RichTextBox. I use VB.Net 2003 and need to select and highlight the text between given offsets. RichTextBox does not highlight the correct string as it treats new line pair as one character. Is there a way to highlight the correct string ? How do I translate real binary offsets to richtextbox offsets ? To reproduce: I have placed a text box...
3
10159
by: Venkatachalam | last post by:
Hello, I am reading a Column form the DataTable and have to display in the RichTextBox/TextBox (With Multi-line). When I try to do so: The width occupied by each charaters are not same and that causes column alignment problem. For ex.
1
1263
by: esadler | last post by:
Hello, I need to look at a string in a richtextbox one character (or space) at a time to determine the color of the character. For example if the user entered “This is my string” I need to know that “This is” is Red and “my” is green and “stri” is red and “ng” is yellow. This string will be sent to a marquee and knowing the color is important in order to insert the proper ASCII character before the color change. Thank you for your help.
5
6099
by: Andrus | last post by:
I use Winforms RichTextBox control to edit scripts. Scripts are plain ascii texts. When error occurs, script engine returns character position of error in code as integer. How to position cursor to this character position ? RichTextBox does not have current position property. Andrus.
0
10311
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9942
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8967
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.