Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to fire button_click event Pin
BlackDice22-Nov-04 8:14
BlackDice22-Nov-04 8:14 
AnswerRe: how to fire button_click event Pin
Charlie Williams22-Nov-04 8:19
Charlie Williams22-Nov-04 8:19 
AnswerRe: how to fire button_click event Pin
BlackDice22-Nov-04 8:22
BlackDice22-Nov-04 8:22 
AnswerRe: how to fire button_click event Pin
mav.northwind22-Nov-04 22:17
mav.northwind22-Nov-04 22:17 
Generalmedia player Pin
mallina22-Nov-04 7:00
mallina22-Nov-04 7:00 
GeneralRe: media player Pin
mhmoud rawas23-Nov-04 2:22
mhmoud rawas23-Nov-04 2:22 
GeneralRe: media player Pin
mallina23-Nov-04 4:27
mallina23-Nov-04 4:27 
QuestionCheck if Japenese Characters are Single/Double Byte values and convert? Pin
satvinder123456722-Nov-04 6:21
satvinder123456722-Nov-04 6:21 
Confused | :confused: Hi, need to validate to see if the user is entering Half Width (Single Byte) Characters (Japanese KataKana) or Full Height (Double Byte) Characters and convert the string to either Single or Double Byte Characters as appropriate. And I need to do this in an ASP.NET application written in C#.NET.

I have tried using the
string x = "ヲ";
Console.WriteLine (Encoding.UTF8.GetBytes(x)); // always returns 2 bytes

UnicodeEncoding Unicode = new UnicodeEncoding();

byte[] bytes = Unicode.GetBytes( x);
Console.WriteLine( bytes.Length); // returns 2 bytes should be 1
foreach (byte b in bytes)
{
Console.WriteLine( b);
}

string str2 = "書";

byte[] bytes1 = Unicode.GetBytes( str2);
Console.WriteLine( bytes1.Length); // returns 2 bytes should be 2
foreach (byte b in bytes1)
{
Console.WriteLine( b);
}

What am I doing wrong, Any ideas anyone. I th

Thanks in advance

Satvinder
Satvinder.Basra at ace-ina dot com
AnswerRe: Check if Japenese Characters are Single/Double Byte values and convert? Pin
Daniel Turini22-Nov-04 6:32
Daniel Turini22-Nov-04 6:32 
AnswerRe: Check if Japenese Characters are Single/Double Byte values and convert? Pin
Jay Shankar22-Nov-04 14:27
Jay Shankar22-Nov-04 14:27 
GeneralRe: Check if Japenese Characters are Single/Double Byte values and convert? Pin
satvinder123456722-Nov-04 22:06
satvinder123456722-Nov-04 22:06 
GeneralCrystal Reports Runtime Pin
Lash2022-Nov-04 5:09
Lash2022-Nov-04 5:09 
GeneralRe: Crystal Reports Runtime Pin
BlackDice22-Nov-04 5:21
BlackDice22-Nov-04 5:21 
GeneralRe: Crystal Reports Runtime Pin
Lash2030-Nov-04 4:06
Lash2030-Nov-04 4:06 
GeneralXSD & generated dataset - Base class Pin
StephHamel22-Nov-04 3:21
StephHamel22-Nov-04 3:21 
GeneralRe: XSD & generated dataset - Base class Pin
Skynyrd22-Nov-04 4:16
Skynyrd22-Nov-04 4:16 
GeneralLeading Zeros ( Format) Pin
Vector722-Nov-04 1:42
Vector722-Nov-04 1:42 
GeneralRe: Leading Zeros ( Format) Pin
J4amieC22-Nov-04 2:04
J4amieC22-Nov-04 2:04 
GeneralRe: Leading Zeros ( Format) Pin
Vector722-Nov-04 2:16
Vector722-Nov-04 2:16 
QuestionWAB from c#? Pin
Angel Tsvetkov22-Nov-04 1:14
Angel Tsvetkov22-Nov-04 1:14 
QuestionMy FileSystemWatcher does not work.. Why? Pin
sverre.andersen22-Nov-04 1:02
sverre.andersen22-Nov-04 1:02 
AnswerRe: My FileSystemWatcher does not work.. Why? Pin
Daniel Turini22-Nov-04 1:07
Daniel Turini22-Nov-04 1:07 
GeneralRe: My FileSystemWatcher does not work.. Why? Pin
sverre.andersen22-Nov-04 1:29
sverre.andersen22-Nov-04 1:29 
AnswerRe: My FileSystemWatcher does not work.. Why? Pin
BlackDice22-Nov-04 5:14
BlackDice22-Nov-04 5:14 
QuestionHow are AxInterop-DLLs created? Pin
mav.northwind22-Nov-04 0:35
mav.northwind22-Nov-04 0:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.