Jump to content
Changes to the Jaspersoft community edition download ×

Method .Replace(Char, Char) to replace multiple extended characters


jenkins

Recommended Posts

Hello there,

I would like to replace a list of special characters in case one or more appear in a text field.

An example of the extended characters: 

äöü

My expression looks like this:

$F{Account}.replace(  'ä' , 'ae' ).replace( 'ö' , 'oe' ).replace( 'ü' , 'ue' )

As its certain that my list of extended characters will grow I would like to find a more elegant solution with an array. Any ideas how this can be impelmented in iReport?

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

×
×
  • Create New...