Skip to content

Special character like é ,ó , é are not getting properly parsed #24

Description

@kashifaliquazi

Special character like é ,ó , é are not getting properly parsed

for example

éviépinóé is converting to éviépinóé.

We are not sure which part on parsing is causing the issue and how to fix this.

Activity

  1. juicycool92 commented on Nov 29, 2021

    @juicycool92

    same here with Korean. any hint?

  2. kkiwan commented on Mar 18, 2022

    @kkiwan

    @juicycool92

    const bodyBuffer = Buffer.from(event['body-json'].toString(), 'base64');
    const boundary = multipart.getBoundary(
        event.params.header['Content-Type'] || event.params.header['content-type']
    );
    const parts = multipart.Parse(bodyBuffer, boundary);
    const { filename } = parts[0];
    console.log('filename ===>', filename);    // á\x84\x82á\x85¡á\x84\x8Bá\x85´á\x84\x91á\x85¡á\x84\x8Bá\x85µá\x86¯.png
    let filename_ = Buffer.from(filename, 'binary').toString();
    console.log('filename_ ===>', filename_);    // 나의파일.jpg
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions