Skip to content

Commit

Permalink
Resolve PIVOT-644.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/1.5.x@999506 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Gregory K. Brown committed Sep 21, 2010
1 parent 7dd3a52 commit a85eaca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/org/apache/pivot/json/JSONSerializer.java
Expand Up @@ -180,6 +180,11 @@ public Object readObject(Reader reader)
// Move to the first character
c = reader.read();

// Ignore BOM (if present)
if (c == 0xFEFF) {
c = reader.read();
}

// Read the root value
LineNumberReader lineNumberReader = new LineNumberReader(reader);
Object object;
Expand Down
5 changes: 5 additions & 0 deletions core/src/org/apache/pivot/serialization/CSVSerializer.java
Expand Up @@ -248,6 +248,11 @@ public List<?> readObject(Reader reader)
// Move to the first character
c = reader.read();

// Ignore BOM (if present)
if (c == 0xFEFF) {
c = reader.read();
}

LineNumberReader lineNumberReader = new LineNumberReader(reader);

try {
Expand Down

0 comments on commit a85eaca

Please sign in to comment.