Re: [Dhis2-users] The chinese words in chart is crazy words.

2012-10-10 Thread Knut Staring
Unfortunately, it has not yet been resolved. Hopefully,  it can be in the
2.10 release at the end of this month.
Knut

Sent from my mobile
On Oct 11, 2012 3:58 AM, "easy"  wrote:

>
>
>
> Hi,sir,
> But the chart still have crazy words.
> --
> 此致
>
>   easy
>
> 莫愁前路无知己,天下谁人不识君。
> At 2012-10-10 19:56:31,"Jan Henrik Øverland" 
> wrote:
>
> Hi, this has already been asked (by you) and answered (by me) on this list.
>
> On Tue, Oct 9, 2012 at 5:35 PM, easy  wrote:
>
>> I find this function in app.js under visualizer module will replace all
>> chinese word with null,so the chinese org name will display none in org
>> tree in visualize chart designer.
>>
>> jsonEncodeString: function(str) {
>> return typeof str === 'string' ? str.replace(/[^a-zA-Z
>> 0-9(){}<>_!+;:?*&%#-]+/g,'') : str;
>> },
>>
>>
>> At 2012-10-09 22:56:30,easy  wrote:
>>
>> Hi,Lars,
>>   I updated from trunk,recompile,still find some  crazy words,though some
>> is corrected.
>>   I wonder if  some chart are normal ,but some other chart arn't display
>> normal. why do you think is font problem?
>>
>>
>>
>> --
>> 此致
>> easy
>>
>> 莫愁前路无知己,天下谁人不识君。
>>
>> At 2012-10-09 18:32:30,"Lars Helge Øverland"  wrote:
>>
>> Hi Easy
>>
>> I can see that we are using Tahoma as font for the server-generated
>> charts which is not good practice. I have changed to using a logical sans
>> serif font, which means that Java will search for the best match within the
>> available fonts for this category. This means that you should be able to
>> install a Chinese sans serif font on your server to render this properly.
>>
>> You can download the latest version from here
>>
>> http://apps.dhis2.org/ci/
>>
>> regards,
>>
>> Lars
>>
>>
>>
>>
>> On Tue, Oct 9, 2012 at 9:44 AM, easy  wrote:
>>
>>> Hi,all, I put some chinese words in chart,some charts are normal ,but
>>> some charts display abnormbal,crazy words, why>? view in attachment.
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> 此致
>>>
>>>easy
>>>
>>> 莫愁前路无知己,天下谁人不识君。
>>>
>>>
>>> thanks!
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] The chinese words in chart is crazy words.

2012-10-10 Thread easy



Hi,sir,
But the chart still have crazy words.

--

此致

  easy

莫愁前路无知己,天下谁人不识君。
At 2012-10-10 19:56:31,"Jan Henrik Øverland"  
wrote:
Hi, this has already been asked (by you) and answered (by me) on this list.


On Tue, Oct 9, 2012 at 5:35 PM, easy  wrote:
I find this function in app.js under visualizer module will replace all chinese 
word with null,so the chinese org name will display none in org tree in 
visualize chart designer.

jsonEncodeString: function(str) {
return typeof str === 'string' ? str.replace(/[^a-zA-Z 
0-9(){}<>_!+;:?*&%#-]+/g,'') : str;
},


At 2012-10-09 22:56:30,easy  wrote:

Hi,Lars,
  I updated from trunk,recompile,still find some  crazy words,though some is 
corrected.
  I wonder if  some chart are normal ,but some other chart arn't display 
normal. why do you think is font problem?




--

此致
easy

莫愁前路无知己,天下谁人不识君。

At 2012-10-09 18:32:30,"Lars Helge Øverland"  wrote:
Hi Easy


I can see that we are using Tahoma as font for the server-generated charts 
which is not good practice. I have changed to using a logical sans serif font, 
which means that Java will search for the best match within the available fonts 
for this category. This means that you should be able to install a Chinese sans 
serif font on your server to render this properly. 


You can download the latest version from here


http://apps.dhis2.org/ci/


regards,


Lars




 


On Tue, Oct 9, 2012 at 9:44 AM, easy  wrote:

Hi,all, I put some chinese words in chart,some charts are normal ,but some 
charts display abnormbal,crazy words, why>? view in attachment.








--

此致

   easy

莫愁前路无知己,天下谁人不识君。
 
thanks!
 



___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp










___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Java Help

2012-10-10 Thread Kabango Malewezi
Thanks everybody, everything worked out well.


Kabango Malewezi

SSDI Services

2nd Floor, Pamodzi House, City Center, P.O Box 1091, Lilongwe, Malawi
Tel: +265 (01) 776 412/3/4 | fax: +265 (01) 776 410 | Mobile: +265 (0) 88 4 245 
431

kmalew...@jhpiego.net |  www.jhpiego.org

Skype: kabango.malewezi | Twitter: kabangoM


From: dhis2-users-bounces+kmalewezi=jhpiego@lists.launchpad.net 
[dhis2-users-bounces+kmalewezi=jhpiego@lists.launchpad.net] on behalf of 
Kabango Malewezi [kmalew...@jhpiego.net]
Sent: Wednesday, October 10, 2012 1:00 PM
To: Bob Jolliffe; Jason Pickering
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Java Help

Thanks, that helps alot. Will try.

Kabango Malewezi

SSDI Services

2nd Floor, Pamodzi House, City Center, P.O Box 1091, Lilongwe, Malawi
Tel: +265 (01) 776 412/3/4 | fax: +265 (01) 776 410 | Mobile: +265 (0) 88 4 245 
431

kmalew...@jhpiego.net |  www.jhpiego.org

Skype: kabango.malewezi | Twitter: kabangoM


From: Bob Jolliffe [bobjolli...@gmail.com]
Sent: Wednesday, October 10, 2012 12:45 PM
To: Jason Pickering
Cc: Kabango Malewezi; dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Java Help

Hi Kabango

I think the best approach is not to specify JAVA_HOME at all.  ie as
Jason says, just leave the line out.

You can always run:
sudo update-alternatives --config java

to check which java version is configured as default on your system.

I think the only time you would explicitly want to set this would be
if you have a couple of java versions and you have a particular reason
to use one of them (not the default one) to run your tomcat.  Better
in most cases to keep it simple ..

Bob

On 10 October 2012 11:32, Jason Pickering  wrote:
> Depends on your setup. If there is nothing here
> /usr/lib/jvm/java-6-sun/bin/java then you must find where Java actually is
> on the machine. Leaving the line out will use your default Java.
>
> Obviously, you will need to change this as well
>
> export DHIS2_HOME=/home/your-user-name/dhis2/DHIS2_HOME
>
> to point to the actual directory.
>
> Regards,
> Jason
>
>
> On Wed, Oct 10, 2012 at 12:19 PM, Kabango Malewezi 
> wrote:
>> Dear Team,
>>
>> I'm trying to setup DHIS2 online. I did the test before and it worked
>> fine. Now on production server I've a problem with Java. I've installed
>> "openjdk java" (NOT Sun Java I used before) and it's working fine. The
>> problem is the setenv.sh file.(See below) I don't know what path to put for
>> java. Anything I put brings an error in catalina.out e.g
>>
>>  "/usr/local/apache-tomcat-7.0.30/bin/catalina.sh: 1: eval:
>> /usr/lib/jvm/java-6-sun/bin/java: not found"
>>
>> What path should I put on the first line. Openjdk dava is a default
>> installation.
>>
>> Here is the /usr/local/apache-tomcat-7.0.30/bin/setenv.sh
>>
>> export JAVA_HOME=/usr/lib/jvm/java-6-sun
>> export JAVA_OPTS=”-Xmx600m -XX:MaxPermSize=1000m”
>> export DHIS2_HOME=/home/your-user-name/dhis2/DHIS2_HOME
>>
>>
>> Kabango Malewezi
>>
>> SSDI Services
>>
>> 2nd Floor, Pamodzi House, City Center, P.O Box 1091, Lilongwe, Malawi
>> Tel: +265 (01) 776 412/3/4 | fax: +265 (01) 776 410 | Mobile: +265 (0) 88
>> 4 245 431
>>
>> kmalew...@jhpiego.net  |
>> www.jhpiego.org
>>
>> Skype: kabango.malewezi | Twitter: kabangoM
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] The chinese words in chart is crazy words.

2012-10-10 Thread Jan Henrik Øverland
Hi, this has already been asked (by you) and answered (by me) on this list.

On Tue, Oct 9, 2012 at 5:35 PM, easy  wrote:

> I find this function in app.js under visualizer module will replace all
> chinese word with null,so the chinese org name will display none in org
> tree in visualize chart designer.
>
> jsonEncodeString: function(str) {
> return typeof str === 'string' ? str.replace(/[^a-zA-Z
> 0-9(){}<>_!+;:?*&%#-]+/g,'') : str;
> },
>
>
> At 2012-10-09 22:56:30,easy  wrote:
>
> Hi,Lars,
>   I updated from trunk,recompile,still find some  crazy words,though some
> is corrected.
>   I wonder if  some chart are normal ,but some other chart arn't display
> normal. why do you think is font problem?
>
>
>
> --
> 此致
> easy
>
> 莫愁前路无知己,天下谁人不识君。
>
> At 2012-10-09 18:32:30,"Lars Helge Øverland"  wrote:
>
> Hi Easy
>
> I can see that we are using Tahoma as font for the server-generated charts
> which is not good practice. I have changed to using a logical sans serif
> font, which means that Java will search for the best match within the
> available fonts for this category. This means that you should be able to
> install a Chinese sans serif font on your server to render this properly.
>
> You can download the latest version from here
>
> http://apps.dhis2.org/ci/
>
> regards,
>
> Lars
>
>
>
>
> On Tue, Oct 9, 2012 at 9:44 AM, easy  wrote:
>
>> Hi,all, I put some chinese words in chart,some charts are normal ,but
>> some charts display abnormbal,crazy words, why>? view in attachment.
>>
>>
>>
>>
>>
>>
>> --
>> 此致
>>
>>easy
>>
>> 莫愁前路无知己,天下谁人不识君。
>>
>>
>> thanks!
>>
>>
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Java Help

2012-10-10 Thread Kabango Malewezi
Thanks, that helps alot. Will try.

Kabango Malewezi 

SSDI Services

2nd Floor, Pamodzi House, City Center, P.O Box 1091, Lilongwe, Malawi
Tel: +265 (01) 776 412/3/4 | fax: +265 (01) 776 410 | Mobile: +265 (0) 88 4 245 
431

kmalew...@jhpiego.net |  www.jhpiego.org

Skype: kabango.malewezi | Twitter: kabangoM


From: Bob Jolliffe [bobjolli...@gmail.com]
Sent: Wednesday, October 10, 2012 12:45 PM
To: Jason Pickering
Cc: Kabango Malewezi; dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Java Help

Hi Kabango

I think the best approach is not to specify JAVA_HOME at all.  ie as
Jason says, just leave the line out.

You can always run:
sudo update-alternatives --config java

to check which java version is configured as default on your system.

I think the only time you would explicitly want to set this would be
if you have a couple of java versions and you have a particular reason
to use one of them (not the default one) to run your tomcat.  Better
in most cases to keep it simple ..

Bob

On 10 October 2012 11:32, Jason Pickering  wrote:
> Depends on your setup. If there is nothing here
> /usr/lib/jvm/java-6-sun/bin/java then you must find where Java actually is
> on the machine. Leaving the line out will use your default Java.
>
> Obviously, you will need to change this as well
>
> export DHIS2_HOME=/home/your-user-name/dhis2/DHIS2_HOME
>
> to point to the actual directory.
>
> Regards,
> Jason
>
>
> On Wed, Oct 10, 2012 at 12:19 PM, Kabango Malewezi 
> wrote:
>> Dear Team,
>>
>> I'm trying to setup DHIS2 online. I did the test before and it worked
>> fine. Now on production server I've a problem with Java. I've installed
>> "openjdk java" (NOT Sun Java I used before) and it's working fine. The
>> problem is the setenv.sh file.(See below) I don't know what path to put for
>> java. Anything I put brings an error in catalina.out e.g
>>
>>  "/usr/local/apache-tomcat-7.0.30/bin/catalina.sh: 1: eval:
>> /usr/lib/jvm/java-6-sun/bin/java: not found"
>>
>> What path should I put on the first line. Openjdk dava is a default
>> installation.
>>
>> Here is the /usr/local/apache-tomcat-7.0.30/bin/setenv.sh
>>
>> export JAVA_HOME=/usr/lib/jvm/java-6-sun
>> export JAVA_OPTS=”-Xmx600m -XX:MaxPermSize=1000m”
>> export DHIS2_HOME=/home/your-user-name/dhis2/DHIS2_HOME
>>
>>
>> Kabango Malewezi
>>
>> SSDI Services
>>
>> 2nd Floor, Pamodzi House, City Center, P.O Box 1091, Lilongwe, Malawi
>> Tel: +265 (01) 776 412/3/4 | fax: +265 (01) 776 410 | Mobile: +265 (0) 88
>> 4 245 431
>>
>> kmalew...@jhpiego.net  |
>> www.jhpiego.org
>>
>> Skype: kabango.malewezi | Twitter: kabangoM
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Java Help

2012-10-10 Thread Bob Jolliffe
Hi Kabango

I think the best approach is not to specify JAVA_HOME at all.  ie as
Jason says, just leave the line out.

You can always run:
sudo update-alternatives --config java

to check which java version is configured as default on your system.

I think the only time you would explicitly want to set this would be
if you have a couple of java versions and you have a particular reason
to use one of them (not the default one) to run your tomcat.  Better
in most cases to keep it simple ..

Bob

On 10 October 2012 11:32, Jason Pickering  wrote:
> Depends on your setup. If there is nothing here
> /usr/lib/jvm/java-6-sun/bin/java then you must find where Java actually is
> on the machine. Leaving the line out will use your default Java.
>
> Obviously, you will need to change this as well
>
> export DHIS2_HOME=/home/your-user-name/dhis2/DHIS2_HOME
>
> to point to the actual directory.
>
> Regards,
> Jason
>
>
> On Wed, Oct 10, 2012 at 12:19 PM, Kabango Malewezi 
> wrote:
>> Dear Team,
>>
>> I'm trying to setup DHIS2 online. I did the test before and it worked
>> fine. Now on production server I've a problem with Java. I've installed
>> "openjdk java" (NOT Sun Java I used before) and it's working fine. The
>> problem is the setenv.sh file.(See below) I don't know what path to put for
>> java. Anything I put brings an error in catalina.out e.g
>>
>>  "/usr/local/apache-tomcat-7.0.30/bin/catalina.sh: 1: eval:
>> /usr/lib/jvm/java-6-sun/bin/java: not found"
>>
>> What path should I put on the first line. Openjdk dava is a default
>> installation.
>>
>> Here is the /usr/local/apache-tomcat-7.0.30/bin/setenv.sh
>>
>> export JAVA_HOME=/usr/lib/jvm/java-6-sun
>> export JAVA_OPTS=”-Xmx600m -XX:MaxPermSize=1000m”
>> export DHIS2_HOME=/home/your-user-name/dhis2/DHIS2_HOME
>>
>>
>> Kabango Malewezi
>>
>> SSDI Services
>>
>> 2nd Floor, Pamodzi House, City Center, P.O Box 1091, Lilongwe, Malawi
>> Tel: +265 (01) 776 412/3/4 | fax: +265 (01) 776 410 | Mobile: +265 (0) 88
>> 4 245 431
>>
>> kmalew...@jhpiego.net  |
>> www.jhpiego.org
>>
>> Skype: kabango.malewezi | Twitter: kabangoM
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Java Help

2012-10-10 Thread Jason Pickering
Depends on your setup. If there is nothing here
/usr/lib/jvm/java-6-sun/bin/java then you must find where Java actually is
on the machine. Leaving the line out will use your default Java.

Obviously, you will need to change this as well

export DHIS2_HOME=/home/your-user-name/dhis2/DHIS2_HOME

to point to the actual directory.

Regards,
Jason


On Wed, Oct 10, 2012 at 12:19 PM, Kabango Malewezi 
wrote:
> Dear Team,
>
> I'm trying to setup DHIS2 online. I did the test before and it worked
fine. Now on production server I've a problem with Java. I've installed
"openjdk java" (NOT Sun Java I used before) and it's working fine. The
problem is the setenv.sh file.(See below) I don't know what path to put for
java. Anything I put brings an error in catalina.out e.g
>
>  "/usr/local/apache-tomcat-7.0.30/bin/catalina.sh: 1: eval:
/usr/lib/jvm/java-6-sun/bin/java: not found"
>
> What path should I put on the first line. Openjdk dava is a default
installation.
>
> Here is the /usr/local/apache-tomcat-7.0.30/bin/setenv.sh
>
> export JAVA_HOME=/usr/lib/jvm/java-6-sun
> export JAVA_OPTS=”-Xmx600m -XX:MaxPermSize=1000m”
> export DHIS2_HOME=/home/your-user-name/dhis2/DHIS2_HOME
>
>
> Kabango Malewezi
>
> SSDI Services
>
> 2nd Floor, Pamodzi House, City Center, P.O Box 1091, Lilongwe, Malawi
> Tel: +265 (01) 776 412/3/4 | fax: +265 (01) 776 410 | Mobile: +265 (0) 88
4 245 431
>
> kmalew...@jhpiego.net  |  www.jhpiego.org<
http://www.jhpiego.org/>
>
> Skype: kabango.malewezi | Twitter: kabangoM
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Java Help

2012-10-10 Thread Kabango Malewezi
Dear Team,

I'm trying to setup DHIS2 online. I did the test before and it worked fine. Now 
on production server I've a problem with Java. I've installed "openjdk java" 
(NOT Sun Java I used before) and it's working fine. The problem is the 
setenv.sh file.(See below) I don't know what path to put for java. Anything I 
put brings an error in catalina.out e.g

 "/usr/local/apache-tomcat-7.0.30/bin/catalina.sh: 1: eval: 
/usr/lib/jvm/java-6-sun/bin/java: not found"

What path should I put on the first line. Openjdk dava is a default 
installation.

Here is the /usr/local/apache-tomcat-7.0.30/bin/setenv.sh

export JAVA_HOME=/usr/lib/jvm/java-6-sun
export JAVA_OPTS=”-Xmx600m -XX:MaxPermSize=1000m”
export DHIS2_HOME=/home/your-user-name/dhis2/DHIS2_HOME


Kabango Malewezi

SSDI Services

2nd Floor, Pamodzi House, City Center, P.O Box 1091, Lilongwe, Malawi
Tel: +265 (01) 776 412/3/4 | fax: +265 (01) 776 410 | Mobile: +265 (0) 88 4 245 
431

kmalew...@jhpiego.net  |  
www.jhpiego.org

Skype: kabango.malewezi | Twitter: kabangoM

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp