We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Printf.sprintf
Here's a simple example:
let message = Printf.sprintf({js|Greetings and 你好, %s!|js}, "Jon"); Js.log(message);
This produces
Greetings and ä½ å¥½, Jon!
Playground link
Interestingly, native OCaml doesn't have this problem:
% ocaml OCaml version 5.0.0 Enter #help;; for help. # Printf.printf {js|Greetings and 你好, %s!|js} "Jon";; Greetings and 你好, Jon!- : unit = () #
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Here's a simple example:
This produces
Playground link
Interestingly, native OCaml doesn't have this problem:
The text was updated successfully, but these errors were encountered: