[mapguide-users] Does Mapguide support unicode?

Farah farah at egovernments.org
Wed Oct 11 07:25:37 EDT 2006


Hi shailesh..

 

Yes.these tooltip and label values are from an MIS Database..

If you are setting the tooltip value for a temporary layer, then it can be
done through code, like I said before.

 

If it is for an existing resource, I guess u have to do it from the studio.U
will have to have the required data in your feature source (sdf).If it is
not there, I guess u wil have to do a join with your database to get the
values in your studio. Once you do that, you have to place the required font
file ( ttf) in your windows/fonts folder. Then when u create a lable for
your layer from studio, the new font will appear in the list of fonts.

 

 

 

Regards

Farah

 

 

  _____  

From: shailesh [mailto:shailesh at simplexindia.com] 
Sent: Wednesday, October 11, 2006 4:06 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Does Mapguide support unicode?

 

Thanks a lot Farah for sharing the piece of code.
We use only Mapguide studio for tooltips/labels etc, If you can please guide
me on where / which page to insert the code that would be great
Are these labels/toolitps from a column of Oracle spatial table? What data
source are using? 

-Regards
Shailesh

----- Original Message -----

From: Farah  <mailto:farah at egovernments.org> <farah at egovernments.org>

To:  <mailto:users at mapguide.osgeo.org> <users at mapguide.osgeo.org>

Cc: 

Date: Wednesday, October 11 2006 03:06 PM

Subject: RE: [mapguide-users] Does Mapguide support unicode?

Hi..!!!!

 

I had the same requirement! I was creating a temporary layer and I needed to
display some kannade text as alabel as well as tooltip for the temporary
layer. It worked fine.

 

I copied my required font into the Windows/fonts folder (.ttf file). Then in
my code, I did the following: ( Owner name is the required text to be shown
as alabel and tooltip in kannada.)

 

 

 

<%@ page contentType="text/html; charset=UTF-8" %>

 

 

 

String OwnerName = PropertyList[0];

 

byte[] bytes = new byte[OwnerName.length()];

for (int i = 0; i < OwnerName.length(); i++)

{

bytes[i] = (byte) OwnerName.charAt(i);

}

OwnerName = new String(bytes,"UTF-8"); 

 

Then I assigned this owner name as a string property for the temporary layer
and set it as the tooltip and label.

 

Regards

Farah

 

 

  _____  

From: shailesh [mailto:shailesh at simplexindia.com] 
Sent: Tuesday, October 10, 2006 10:02 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Does Mapguide support unicode?

 


Hi all,
Can we display mapgude labels any other language other the english
We would be using Map 3d to create maps and store them in oracle spatial .
The attributes of the parcels and lots are to be stored in our national
language - Hindi. 
Is mapguide capable to dislaying the labels in any other langauge other than
english, 
If it supports unicoce then i think it must be possible , Has someone
already implemented this ? can some one guide me ?

Thanks 
Shailesh





--------------------------------------------------------------------- To
unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org For additional
commands, e-mail: users-help at mapguide.osgeo.org

--------------------------------------------------------------------- To
unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org For additional
commands, e-mail: users-help at mapguide.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20061011/44901fd4/attachment.html


More information about the Mapguide-users mailing list