Skip to content

Commit 9b85c9d

Browse files
committed
Add note about default encoding change to XML.save method documentation.
1 parent e15ce87 commit 9b85c9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shared/src/main/scala/scala/xml/XML.scala

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ object XML extends XMLLoader[Elem] {
7373
* Saves a node to a file with given filename using given encoding
7474
* optionally with xmldecl and doctype declaration.
7575
*
76+
* Note: default encoding was ISO-8859-1 (latin1) in pre-1.0.7 scala-xml versions.
77+
* If your code depends on charaters in non-ASCII latin1 range, specify
78+
* ISO-8859-1 encoding explicitly.
79+
*
7680
* @param filename the filename
7781
* @param node the xml node we want to write
7882
* @param enc encoding to use

0 commit comments

Comments
 (0)