[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] [Java] toUpperCase OK med String men ikke med char



On Fri, 06 Oct 2006 00:09:54 +0200, Michael Schmidt wrote:

> Det ville være smart, men det håndterer tilsyneladende heller ikke UTF-8
> problematikken.
Følgende komplette program:
import java.util.Locale;

public class Unicode {

    public Unicode() {}

    public static void main(String[] args) {
        String text =
            "aBRAKADABRA SiM sAlA Bim - Ælle" +
            "BæLLE Mig Fortælle";
        Locale danish = new Locale("da");
        System.out.println(text.toUpperCase(danish));
    }
}
giver følgende output:
$ java Unicode
ABRAKADABRA SIM SALA BIM - ÆLLEBÆLLE MIG FORTÆLLE

-- 
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-11-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *