The following rules apply to both the open and close quote:
- If the open quote and close quote are distinct from each other, neither can be a substring of the other.
- Neither open quote nor close quote can be a substring of the delimiter.
- The delimiter cannot be a substring of either open quote or close quote.
- The backslash character (\) cannot occur in either the open quote or close quote.
- The “end of record” (EOR) (i.e., LF or CR/LF) and the EscapeRecordDelimiter sequence are treated as data within quotes.