Go Back   Velocity Reviews > Newsgroups > Java
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Java - UTF-8 problems with windows

 
Thread Tools Search this Thread
Old 08-21-2009, 07:02 AM   #31
Default Re: UTF-8 problems with windows


Lew wrote:
> Roedy Green wrote:
>> On Fri, 14 Aug 2009 08:51:13 -0400, Lew <>
>> wrote,
>> quoted or indirectly quoted someone who said :
>>
>>> Java references are addresses into memory - they point to objects
>>> to which they refer. They aren't exposed to the programmer as
>>> *machine* addresses, but then Java is not a machine language.

>>
>> In the original JVMs, references were handles, pointers to
>> pointers.
>> That made it easier to shuffle objects around in RAM.

>
> What they are in the JVM is independent of the fact that in the Java
> language references function as memory addresses, at a high level.
> Due to the restricted nature of references in Java - you can't
> assign
> arbitrary pointer values such as mid-object addresses, for example -
> this high-level abstraction of an address is sufficient.


I think I could make (address,offset) work for lots of different
address implementations, including handles. (You can do it more or
less even in existing Java with a class that holds a reference and a
java.lang.reflect.Field.) What Java does that's really important is
make references completely opaque.

Does a reference fit in an int? None of your beeswax.
What bits are in a null reference? None of your beeswax.
What's the offset of the length field in a String? None of your
beeswax.

Beautiful stuff. One of the big mistakes Java made was to tell us
that chars are 16 bits. Otherwise, a char could hold every Unicode
character and we wouldn't need surrogates.




Mike Schilling
  Reply With Quote
Old 11-02-2009, 11:05 AM   #32
techhari
Junior Member
 
Join Date: Nov 2009
Posts: 1
Thumbs up Printing Files with Unicode Encoding
Hi Folks,

I have a requirement. My client has files (TXT) which contain Unicode characters which displays Chinese content (Simplified Chinese) in Browser.

When Java print is invoked, it prints as ASCII characters.

When printed from Browser, these characters appear in the printout but not through Java.

Please help.

Regards
Hari N


techhari
techhari is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Reset / Recover Forgotten Windows NT / 2000 / XP / 2003 Administrator Password wskaihd Software 2 11-17-2009 02:01 AM
How to activate Remote Assistance with XP using Windows Live Messenger Oziisr General Help Related Topics 0 02-01-2008 04:45 PM
Computer Security aldrich.chappel.com.use@gmail.com A+ Certification 0 11-27-2007 02:11 AM
MCITP: Enterprise Support Technician MileHighWelch MCITP 1 06-19-2007 10:25 PM
Re: Question about MS critical updates John Coode A+ Certification 0 06-30-2004 06:08 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46