Skip to content

Firefox + Web Worker, mangles utf-8 #595

Closed
@devoidfury

Description

@devoidfury

Note: for support questions, please use one of these channels: stackoverflow or slack

You want to:

  • report a bug
  • request a feature

Current behaviour

Using the client in a Worker on firefox, it does not handle utf-8 correctly.

Steps to reproduce (if the current behaviour is a bug)

Send a higher-ranged utf-8 character as json-encoded plaintext message to a client running firefox browser, with the engine.io-client running inside a Worker.

It works fine in Chrome with or without the web worker, and it also works fine in firefox outside a web worker.

For reference, this is the string that caused it to break for me: "пойду сать всем мпокойной ночи"

Setup

  • OS: Linux inferno 4.15.6-1-ARCH SMP PREEMPT Sun Feb 25 12:53:23 UTC 2018 x86_64 GNU/Linux
  • browser: Firefox 58.0.2 (64-bit)
  • engine.io version: 3.1.5 and 3.2.0

Other information (e.g. stacktraces, related issues, suggestions how to fix)

I don't have a test case atm, but I'll try to make you one this week when things calm down a bit over here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions