Codeunit 1486 Encoding in 28

App
System Application
Namespace
System.Text

Procedures, 1

Versions171819202122232425262728latest

Source242526272829

Source in 28

src/System Application/App/Encoding/src/Encoding.Codeunit.al31 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------

namespace System.Text;

/// <summary>
/// Codeunig that exposes encoding functionality.
/// </summary>
codeunit 1486 Encoding
{
    Access = Public;
    InherentEntitlements = X;
    InherentPermissions = X;

    var
        EncodingImpl: Codeunit "Encoding Impl.";

    /// <summary>
    /// Converts a text from one encoding to another.
    /// </summary>
    /// <param name="SourceCodepage">Encoding code page identifier of the source text. Valid values are between 0 and 65535.</param>
    /// <param name="DestinationCodepage">Encoding code page identifier for the result text. Valid values are between 0 and 65535.</param>
    /// <param name="Text">The text to convert.</param>
    /// <returns>The text in the destination encoding.</returns>
    procedure Convert(SourceCodepage: Integer; DestinationCodepage: Integer; Text: Text): Text
    begin
        exit(EncodingImpl.Convert(SourceCodepage, DestinationCodepage, Text));
    end;
}

Procedures, 1

NameParametersReturnsAccessObsolete
Convert(Integer, Integer, Text)Textpublic-