AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de cifrado/compresión
  • Format of character strings to decode
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Decodes a character string that was encoded by Encode.
Ejemplo
// Encode an image in base64
Res is string = Encode(fLoadBuffer("MyImage.jpg"), encodeBASE64)
// ...
// Decode the image
DecodedImage is Image = Decode(Res, encodeBASE64)
// Decode a buffer received in an HTTP request
bufRead is Buffer = HTTPResponse.Content
<COMPILE IF ConfigurationUnicode>
 	bufResult = Decode(AnsiToUnicode(bufRead), encodeBASE64) 
<ELSE>
 	bufResult = Decode(bufRead, encodeBASE64) 
<END>
Sintaxis
<Result> = Decode(<Element to decode> [, <Encoding/decoding format>])
<Result>: Character string or Buffer
Result of decoding.
<Element to decode>: Character string
Data to decode. This data was encoded by Encode.
Please note: The string to be decoded must be in the same format as the project's default strings: ANSI or Unicode.
<Encoding/decoding format>: Integer constant
Specifies the type of encoding. This parameter must be the same as the one used when encoding.
encodeBASE64
(Default value)
BASE 64 format (complies with the RFC 4648 standard). Encoded text contains only printable characters and CRs (Carriage Returns).
encodeBASE64NoCRBASE 64 format (complies with RFC 4648 standard) without RCs (Carriage Returns). The encoded text contains printable characters only.
encodeBASE64URLBASE 64 URL format (complies with the RFC 4648 standard). The encoded text contains printable characters only.
encodeBASE85BASE 85 format. The encoded text contains printable characters only.
encodePCSASCII format. The encoded text contains printable characters only.
encodeURLToAnsiURL format. The encoded text only contains characters allowed in a URL. The decoded text is an ANSI string. This constant corresponds to the encodeURLFromAnsi constant used in Encode.
encodeURLToUnicodeURL format. The encoded text only contains characters allowed in a URL. The decoded text is a Unicode string. This constant corresponds to the encodeURLFromUnicode constant used in Encode.
encodeURLToUTF8URL format. The encoded text only contains characters allowed in a URL. The decoded text is a UTF-8 string. This constant corresponds to the encodeURLFromUTF8 constant used in Encode.
encodeUUEncodeUUEncode format. The encoded text contains printable characters only.
Observaciones

Format of character strings to decode

The string to be decoded must be of the same format as the default strings in the current project configuration: ANSI or Unicode.
To know or modify the default string format:
  1. Display the description window for the current configuration: in the "Project Explorer" pane, display the "Configurations" context menu and select "Description".
  2. The "Unicode" tab allows you to know which type of character strings is used by default.
Clasificación Lógica de negocio / UI: Lógica de negocio
Componente: wd300std.dll
Versión mínima requerida
  • Versión 22
Esta página también está disponible para…
Comentarios
Exemplo com Fonte
https://repository.windev.com/resource.awp?file_id=281474976711928;exemplo-cryptografia-descryptografia
Boller
15 03 2024
LINK Exemplos
https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/4235-comandos-criptografia-descriptografia-para-usar-windev-webdev-windev/read.awp
Boller
15 03 2024

Última modificación: 25/03/2025

Señalar un error o enviar una sugerencia | Ayuda local