0

Portuguese words from properties file Zscript

asked 2008-06-20 09:34:32 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5043731

By: sirinivasarao

Hi,

I am trying to display portuguese words on zul file. I have placed all the portuguese words in properties file. In zul file i am using zscript variables to fetch those words.
But some invalid characters are coming in the place of non english characters.
I am using zk version 3.0.3. Please help me to solve this.

Thanks and Regards,
SrinivasaRao.

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2008-06-22 09:10:10 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5045070

By: francisco_cpg

Hi SrinivasaRao,

I am using zul files with portuguese words with zk version 3.0.3 too and i dont have any problems. Try to put this <?xml version="1.0" encoding ="ISO-8859-1"?> at the first line of your zul file.

Francisco Guimaraes

link publish delete flag offensive edit

answered 2008-06-23 09:33:14 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5048896

By: sirinivasarao

Hi,

Even i tried the same thing. But it is not working. It is working if i place the portuguese word in ZUL file. But while i am using <zscript> it is not working.

Thanks a lot,
SrinivasaRao.

link publish delete flag offensive edit

answered 2008-06-23 10:19:37 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5048958

By: waterbottle

How do you use those .properties file, what is the encoding of these file and could provide some example code to show up how you use it.
/Dennis

link publish delete flag offensive edit

answered 2008-06-23 15:41:39 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5049603

By: sirinivasarao

<zscript>
String variable
= org.zkoss.util.resource.Label.getLable("PropertyFilekeyValue");
</zscript>

I will use this variable value to display, as ${variable}

Thanks,
SrinivasaRao

link publish delete flag offensive edit

answered 2008-06-24 01:34:21 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5050587

By: waterbottle

What is the encoding of i3 properties files? is it UTF-8 ?


link publish delete flag offensive edit

answered 2008-06-24 07:17:55 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5050998

By: sirinivasarao

No i am not using any encoding types for the properties file.

Thanks,
SrinivasaRao

link publish delete flag offensive edit

answered 2008-06-24 07:35:19 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5051032

By: waterbottle

Open i3 properties file and save it to UTF-8 format then it should works

/Dennis

link publish delete flag offensive edit

answered 2008-06-24 10:10:03 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5051274

By: sirinivasarao

It is working.

Thank you, Thanks a lot
SrinivasaRao.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-06-20 09:34:32 +0800

Seen: 148 times

Last updated: Jun 24 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More