EricC Posted April 2, 2013 Share Posted April 2, 2013 My data file contains a field called 'lastName' the value of 'lastName' is 'Hernández' In a rule, I am simply converting the field to Small Caps, like so: return '<smallcap>' + Field("lastName") + '</smallcap>';This rule converts all of the lower case letters to small caps, EXCEPT FOR the lower case a with the accent above it. It seems to ignore that character as if it doesn't know the equivalent 'upper case' version. http://i50.tinypic.com/1kqyp.jpg Now ... if I do this instead ... return '<smallcap>' + Field("tpa_single_Doctor1").replace("á","Á") + '</smallcap>'... the letter 'a' displays correctly. (Even though Á is already upper case, the rule doesn't see it as upper case. It displays properly at the Small Caps size.) http://i46.tinypic.com/2i1gzk4.jpg Is this a glitch in the 'smallcaps' tag? or an issue with the font encoding? I tried 5 or 6 different fonts but I got the same result each time. My solution is to use the JavaScript '.replace' function but this is cumbersome of I had to watch for all accented characters. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted April 2, 2013 Share Posted April 2, 2013 Yes, this is a limitation of the <smallcap> tag. However, you can use JavaScript's String.toUpperCase function, or FusionPro's ToUpper function, both of which will convert accented characters as well, without the need for tagging. For example: return Field("lastName").toUpperCase();Or: return ToUpper(Field("lastName")); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.