diff --git a/src/main/java/com/amazon/ion/system/IonSystemBuilder.java b/src/main/java/com/amazon/ion/system/IonSystemBuilder.java index fecc451b54..8b8e571462 100644 --- a/src/main/java/com/amazon/ion/system/IonSystemBuilder.java +++ b/src/main/java/com/amazon/ion/system/IonSystemBuilder.java @@ -91,7 +91,7 @@ public static IonSystemBuilder standard() IonCatalog myCatalog; boolean myStreamCopyOptimized = false; - IonTextWriterBuilder textWriterBuilder = IonTextWriterBuilder.standard(); + IonTextWriterBuilder textWriterBuilder = IonTextWriterBuilder.standard().withCharsetAscii(); IonBinaryWriterBuilder binaryWriterBuilder = IonBinaryWriterBuilder.standard(); IonReaderBuilder readerBuilder = IonReaderBuilder.standard(); @@ -269,7 +269,8 @@ public final IonSystemBuilder withStreamCopyOptimized(boolean optimized) /** * Gets the text writer builder whose options will be used when building an - * {@link IonSystem}. By default, {@link IonTextWriterBuilder#standard()} will be used. + * {@link IonSystem}. By default, {@link IonTextWriterBuilder#standard()} + * using {@code US-ASCII} encoding will be used. * * @see #setIonTextWriterBuilder(IonTextWriterBuilder) * @see #withIonTextWriterBuilder(IonTextWriterBuilder) @@ -283,7 +284,8 @@ public final IonTextWriterBuilder getIonTextWriterBuilder() { * an {@link IonSystem}. * * @param builder the writer builder to use in built systems. - * If unset, each system will be built with {@link IonTextWriterBuilder#standard()}. + * If unset, each system will be built with {@link IonTextWriterBuilder#standard()} + * using {@code US-ASCII} encoding. * * @see #getIonTextWriterBuilder() * @see #withIonTextWriterBuilder(IonTextWriterBuilder) @@ -303,7 +305,8 @@ public final void setIonTextWriterBuilder(IonTextWriterBuilder builder) { * always be used instead. * * @param builder the writer builder to use in built systems. - * If unset, each system will be built with {@link IonTextWriterBuilder#standard()}. + * If unset, each system will be built with {@link IonTextWriterBuilder#standard()} + * using {@code US-ASCII} encoding. * * @see #getIonTextWriterBuilder() * @see #setIonTextWriterBuilder(IonTextWriterBuilder)