Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Notifier] Use the UTF-8 encoding in smsapi-notifier#45174

Merged
stof merged 1 commit into
symfony:5.3from
marphi:notifier_smsapi_encoding_bugfix
Jan 26, 2022
Merged

[Notifier] Use the UTF-8 encoding in smsapi-notifier#45174
stof merged 1 commit into
symfony:5.3from
marphi:notifier_smsapi_encoding_bugfix

Conversation

@marphi
Copy link
Copy Markdown
Contributor

@marphi marphi commented Jan 25, 2022

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets ---
License MIT
Doc PR ---

THIS PR is splitted version of PR #45139 (see discussion)

Currently smsapi-notifier does not specify encoding in payload request to provider api which generates such errors.
image
(sms message with invalid encoding)
api.smsapi.pl use windows-1250 as a default value. I propose to set explicitly utf-8.
After changes:
Zrzut ekranu 2022-01-23 o 21 52 28

@carsonbot
Copy link
Copy Markdown

Hey!

Oh no, it looks like you have made this PR towards a branch that is not maintained anymore. :/
Could you update the PR base branch to target one of these branches instead? 4.4, 5.4, 6.0, 6.1.

Cheers!

Carsonbot

Copy link
Copy Markdown
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a changeling entry, thanks

@stof
Copy link
Copy Markdown
Member

stof commented Jan 26, 2022

@OskarStark we don't add changelog entries manually for bugfixes in patch releases

@marphi
Copy link
Copy Markdown
Contributor Author

marphi commented Jan 26, 2022

@stof @OskarStark so I've reverted it

@OskarStark
Copy link
Copy Markdown
Contributor

@stof sorry you are right

@stof stof changed the title [Notifier] smsapi-notifier correct encoding [Notifier] Use the UTF-8 encoding in smsapi-notifier Jan 26, 2022
@stof
Copy link
Copy Markdown
Member

stof commented Jan 26, 2022

Thank you @marphi.

@stof stof merged commit 26c2a85 into symfony:5.3 Jan 26, 2022
fabpot added a commit that referenced this pull request Jan 27, 2022
…ssage with the highest priority (marphi)

This PR was squashed before being merged into the 6.1 branch.

Discussion
----------

[Notifier] smsapi-notifier `fast` option to sending message with the highest priority

| Q             | A
| ------------- | ---
| Branch?       | 6.1
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

I have used custom solution to send sms via smsapi for many years. Time to rewrite it to notifier component. Found 2 issues from my point of view:

1. THIS part is splitted into separate PR #45174. ~~Encoding. Currently `smsapi-notifier` does not specify `encoding` in payload request to provider api which generates such errors.
![image](https://user-images.githubusercontent.com/57309/150697496-76998a85-43e7-418e-a4ab-b9efe69da506.png)
(sms message with invalid encoding)
api.smsapi.pl use `windows-1250` as a default value. I propose to set explicitly `utf-8`.
After changes:~~
![image](https://user-images.githubusercontent.com/57309/150697554-e0d1a8ee-d4d5-4644-b28e-ce17e7a0a320.png)

2. I'm using smsapi to sending auth codes to my clients. In this case is really important to send SMS as fast as possible, `fast` options allow me to do this otherwise messages might have some delays.

Commits
-------

cd266a0 [Notifier] smsapi-notifier `fast` option to sending message with the highest priority
This was referenced Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants