dreimer Posted June 5, 2013 Share Posted June 5, 2013 I need my MAC for this particular job for font reasons and I can't get "Décor" to work correctly. It works fine on the PC. Is there something I'm missing? Quote Link to comment Share on other sites More sharing options...
esmith Posted June 5, 2013 Share Posted June 5, 2013 You can try replacing the accented character with its HTML entity ( é ) which is not platform-specific. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted June 5, 2013 Share Posted June 5, 2013 I need my MAC for this particular job for font reasons and I can't get "Décor" to work correctly. It works fine on the PC. Is there something I'm missing? Is this text in your input data file, in a rule, typed into a text frame, or from somewhere else? If it's your input data file, you might need to set the encoding on the "Data Source - Flat File" step of the Define Data Source dialog. If it's in a rule, you'll need to use entities as Eric describes. Or put the text into a Formatted Text Resource and call that out in the rule. If it's in a text frame or a Formatted Text Resource, the encoding should get automatically converted. Quote Link to comment Share on other sites More sharing options...
dreimer Posted June 6, 2013 Author Share Posted June 6, 2013 It is in my data file and I tried changing the encoding when defining the data with no luck changing it to all the different options available. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted June 6, 2013 Share Posted June 6, 2013 It is in my data file and I tried changing the encoding when defining the data with no luck changing it to all the different options available. It could be a font issue. Are you using the same font on Windows and Mac? Are there any messages in the log file about fonts or encoding? Can you post a job which demonstrates the problem? Quote Link to comment Share on other sites More sharing options...
dreimer Posted June 6, 2013 Author Share Posted June 6, 2013 Doesn't seem to be a font issue. It doesn't show the data correctly when looking at the records in the preview. The Windows machine shows it correctly. I don't see any kind of error in the msg file. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted June 6, 2013 Share Posted June 6, 2013 Can you post the data file, or at least a snippet of it with the character in question? Quote Link to comment Share on other sites More sharing options...
dreimer Posted June 6, 2013 Author Share Posted June 6, 2013 I have attached the file. If you open the file in a text editor it looks correct as well as in Fusion Pro on the Windows machine. Once I switch to the MAC, no luck!Sample.txt Quote Link to comment Share on other sites More sharing options...
step Posted June 6, 2013 Share Posted June 6, 2013 I would replace that character in the data file with the html entity that Eric mentioned in his post. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted June 7, 2013 Share Posted June 7, 2013 Thanks Don. Setting the encoding to Mac Roman in the Data Source Wizard should work, but it's not. I'm investigating why that's not working now. What I would do as a workaround is save the file as Unicode (UTF-16). That will surely work. That's also what I would use for all files going forward, as much as possible. It's not an 8-bit world anymore. Quote Link to comment Share on other sites More sharing options...
dreimer Posted June 7, 2013 Author Share Posted June 7, 2013 Changed the encoding as you suggested and that fixed it, thanks!! Quote Link to comment Share on other sites More sharing options...
dreimer Posted June 9, 2013 Author Share Posted June 9, 2013 One more quick question. My data includes an exclamation mark and I wanted to have that font changed to italic. Is there an easy replace rule I could use to do that? Quote Link to comment Share on other sites More sharing options...
dreimer Posted June 10, 2013 Author Share Posted June 10, 2013 I tried this rule and it doesn't work. Anyone have any ideas? return Field("Session One").replace(/!/g,'<span font="Avenir85HeavyOblique">!</span>'); Quote Link to comment Share on other sites More sharing options...
dreimer Posted June 10, 2013 Author Share Posted June 10, 2013 Figured it out! 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.