Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the name of the character encoding being used by this stream.
public virtual string? Encoding { [Android.Runtime.Register("getEncoding", "()Ljava/lang/String;", "GetGetEncodingHandler")] get; }
[<get: Android.Runtime.Register("getEncoding", "()Ljava/lang/String;", "GetGetEncodingHandler")>]
member this.Encoding : string
The historical name of this encoding, or possibly
null
if the stream has been closed
Returns the name of the character encoding being used by this stream.
If the encoding has an historical name then that name is returned; otherwise the encoding's canonical name is returned.
If this instance was created with the #OutputStreamWriter(OutputStream, String)
constructor then the returned name, being unique for the encoding, may differ from the name passed to the constructor. This method may return null
if the stream has been closed.
Java documentation for java.io.OutputStreamWriter.getEncoding()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in