Note that there are some explanatory texts on larger screens.

plurals
  1. POText files with ampersands drawn into email message stop template
    primarykey
    data
    text
    <p>Admittedly, I'm a rookie. With that said I cannot fully understand an issue and I'm hoping you all can help me isolate the resources I need to investigate. Let me explain the flow and then I'll describe the problem.</p> <p>I have a program that follows this cycle:</p> <p>1) The program retrieves text from txt files on my system and stores the content inside NSStrings.</p> <p>2) The program compiles a report and uses the info from each NSString to populate different sections of an email template.</p> <p>PROBLEM: When a text file contains ampersands, the email does not populate the template any further than the line before the ampersand.</p> <p>I cannot control the contents of these files and some contain ampersands, either in text or links within the file.</p> <p>For example if the body of an email should read as described below, I will never see the last half of the email.</p> <pre><code>SECTION ONE: This text came from one file SECTION TWO: This text &amp; that text from another file SECTION THREE: Additional information from another file </code></pre> <p>If I NSLog the contents of the second section's message, I do see the full content, including the ampersand, but it does not appear when the data is drawn into the mail app through <code>[[NSWorkspace sharedWorkspace] openURL:mailtoURL];</code></p> <p>The other part that confuses me is that when I create an NSString within the app that doesn't draw from an external source, ampersands DO move into the mail message successfully.</p> <p>What do I need to look into to make this play nice?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload