Jump to content

Javascript - problem with local diacritics


Maciej Toczyski
 Share

Recommended Posts

Maciej Toczyski

Hi,

I am using a very simple code:

var sO = this.getField("someField").value;

if(sO == "Przemysław Grzyb"){sOFirstname="Przemek"; sOEmail="przemyslaw.grzyb@someemail.com"; sOPhone="+48(22)2222222";}

else if { some code}

else {some code}

this.getField("SOEmail").value = sOEmail;
this.getField("SOTelefon").value = sOPhone;

Field someField is a combo box. With some names defined. Przemysław Grzyb is one of them.

The problem I am having is, whenever there is a local Polish diacritics, value is not being recognized properly via Javascript. All name without Polish characters are being recognized correctly.

We have recently migrated from Adobe Pro into Nitro Pro. I did not have such problem in Adobe.

Any idea how to solve it?

 

And one more question. In Adobe I was using extractPages() function to create a new document with only selected pages from the original one. In Nitro Pro

this function seems not to be implemented. Is there any other way to achieve the same?

Regards,

Maciek

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.