473,734 Members | 2,647 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unicode character in Japanese printing, but only square

Hello, I am trying to print a unicode character that's in Japanese. In my
ASP.NET app (C#) I just set a char to that unicode character and use a
response.write( ). The char prints, but it is just a square.

I set the culture of the .aspx page to japanese, and even though my browser
already prints asian characters, I added the Japanese to it also. My web
config has the utf-8 line in it. What should I do?

Thanks,

Spencer
Nov 19 '05 #1
4 4253
try:

<META http-equiv="Content-Type" content="text/html; charset=utf-8">

in the HTML <head> section

"Spencer H. Prue" <Sp**********@d iscussions.micr osoft.com> wrote in message
news:33******** *************** ***********@mic rosoft.com...
Hello, I am trying to print a unicode character that's in Japanese. In my
ASP.NET app (C#) I just set a char to that unicode character and use a
response.write( ). The char prints, but it is just a square.

I set the culture of the .aspx page to japanese, and even though my
browser
already prints asian characters, I added the Japanese to it also. My web
config has the utf-8 line in it. What should I do?

Thanks,

Spencer

Nov 19 '05 #2
You must install language support for Japanese.

Go to Control Panel, select "Regional and Language Options",
and select the "Languages" tab.

Add the Japanese language pack.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Spencer H. Prue" <Sp**********@d iscussions.micr osoft.com> wrote in message
news:33******** *************** ***********@mic rosoft.com...
Hello, I am trying to print a unicode character that's in Japanese. In my
ASP.NET app (C#) I just set a char to that unicode character and use a
response.write( ). The char prints, but it is just a square.

I set the culture of the .aspx page to japanese, and even though my
browser
already prints asian characters, I added the Japanese to it also. My web
config has the utf-8 line in it. What should I do?

Thanks,

Spencer

Nov 19 '05 #3
Andy Fish wrote:
try:

<META http-equiv="Content-Type" content="text/html; charset=utf-8">

in the HTML <head> section


That's not necessary unless you're dealing with a browser that's coming
right from the Dark Ages. ASP.NET produces a nice
Content-Type: text/html; charset=utf-8
header.

Cheers,
--
http://www.joergjooss.de
mailto:ne****** **@joergjooss.d e
Nov 19 '05 #4
Spencer,

did you try the tip I gave you ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Spencer H. Prue" <Sp**********@d iscussions.micr osoft.com> wrote in message
news:33******** *************** ***********@mic rosoft.com...
Hello, I am trying to print a unicode character that's in Japanese. In my
ASP.NET app (C#) I just set a char to that unicode character and use a
response.write( ). The char prints, but it is just a square.

I set the culture of the .aspx page to japanese, and even though my
browser
already prints asian characters, I added the Japanese to it also. My web
config has the utf-8 line in it. What should I do?

Thanks,

Spencer

Nov 19 '05 #5

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

Similar topics

1
10416
by: Avnish | last post by:
Hi, I am looking for some form of validation for all the alphanumeric characters in the entire unicode range e.g. the validation should also accept japanese characters but should restrict japanese punctuation marks. I need this validation for atleast for the CJKT range if not possible for the entire unicode range. I can even make use of regular expressions. Also, please note that this validation should be in Javascript
5
4417
by: Nancy | last post by:
I recently completed a web page, "Browser Tests of Entities in 2004". http://www.santagata.us/characters/CharacterEntities.html It shows those characters that work in all of the version 5.2+ browsers that were tested and those that only work in some of them. Take a look, maybe you'll consider it useful. This is not my field (I'm an architect - you know the house construction kind), so if you notice any inaccuracies I'd appreciate a...
8
3273
by: zahidal | last post by:
hello, i am facing a problem with a db2 database created with utf-8 character set. My db2 server is running on windows 2000 server, client is on another machine that is also running windows 2000 server. installation of db2 is default on both client and server. after creating database i cant insert any japanese/bangla character in the database. then i test the font settngs of both db2 server and client from Control centre and found that...
6
2262
by: Dennis Gearon | last post by:
This is what has to be eventually done:(as sybase, and probably others do it) http://www.ianywhere.com/whitepapers/unicode.html I'm not sure how that will affect LIKE and REGEX. ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html
40
3239
by: apprentice | last post by:
Hello, I'm writing an class library that I imagine people from different countries might be interested in using, so I'm considering what needs to be provided to support foreign languages, including asian languages (chinese, japanese, korean, etc). First of all, strings will be passed to my class methods, some of which based on the language (and on the encoding) might contain characters that require more that a single byte.
17
10705
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, Wide character and multi-byte character are two popular encoding schemes on Windows. And wide character is using unicode encoding scheme. But each time I feel confused when talking with another team -- codepage -- at the same time. I am more confused when I saw sometimes we need codepage parameter for wide character conversion, and sometimes we do not need for conversion. Here are two examples,
7
4023
by: 7stud | last post by:
Based on this example and the error: ----- u_str = u"abc\u9999" print u_str UnicodeEncodeError: 'ascii' codec can't encode character u'\u9999' in position 3: ordinal not in range(128) ------
8
2408
by: mario | last post by:
I have checks in code, to ensure a decode/encode cycle returns the original string. Given no UnicodeErrors, are there any cases for the following not to be True? unicode(s, enc).encode(enc) == s mario
2
1604
by: David | last post by:
Hi list. I've never used unicode in a Python script before, but I need to now. I'm not sure where to start. I'm hoping that a kind soul can help me out here. My current (almost non-existant) knowledge of unicode: string types. What I don't understand yet is what encodings are and when you'd want/need to use them. What I'd like is to just be able to
0
8776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9449
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
9310
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...
0
9182
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
8186
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...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4550
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...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2180
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.