Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix the way unicode character are displayed in generated responses in... #799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
imami wants to merge 1 commit into mpociot:master
base: master
Choose a base branch
Loading
from imami:fix-utf-escaped
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/views/partials/example-requests/bash.blade.php
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@endforeach
@endif
@if(count($route['cleanBodyParameters']))
-d '{!! json_encode($route['cleanBodyParameters']) !!}'
-d '{!! json_encode($route['cleanBodyParameters'], JSON_UNESCAPED_UNICODE) !!}'
@endif

```
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@endif
@if(count($route['cleanBodyParameters']))

let body = {!! json_encode($route['cleanBodyParameters'], JSON_PRETTY_PRINT) !!}
let body = {!! json_encode($route['cleanBodyParameters'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) !!}
@endif

fetch(url, {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/example-requests/php.blade.php
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
$response = $client->{{ strtolower($route['methods'][0]) }}('{{ rtrim($baseUrl, '/') . '/' . ltrim($route['boundUri'], '/') }}');
@endif
$body = $response->getBody();
print_r(json_decode((string) $body));
print_r(json_decode((string) $body, JSON_UNESCAPED_UNICODE));
```
2 changes: 1 addition & 1 deletion resources/views/partials/example-requests/python.blade.php
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

url = '{{ rtrim($baseUrl, '/') }}/{{ ltrim($route['boundUri'], '/') }}'
@if(count($route['cleanBodyParameters']))
payload = {!! json_encode($route['cleanBodyParameters'], JSON_PRETTY_PRINT) !!}
payload = {!! json_encode($route['cleanBodyParameters'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) !!}
@endif
@if(count($route['cleanQueryParameters']))
params = {!! \Mpociot\ApiDoc\Tools\Utils::printQueryParamsAsKeyValue($route['cleanQueryParameters'], "'", ":", 2, "{}") !!}
Expand Down

AltStyle によって変換されたページ (->オリジナル) /