Skip to content
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

[Bug]: Popup tabs do not support 4-byte characters (Japanese). #3038

Closed
yamamoto-ryuzo opened this issue Jun 5, 2022 · 4 comments
Closed
Labels

Comments

@yamamoto-ryuzo
Copy link

yamamoto-ryuzo commented Jun 5, 2022

What is the bug?

Popup tabs do not support 4-byte characters (Japanese).

Steps to reproduce the issue

  1. operating environment
     QGIS drag & drop format
  2. bug conditions
     When 4-byte Japanese characters are used for popup tabs.
     When two or more tabs are used.
     When there is a tab with an empty (NULL) attribute, the next tab is not displayed
  3. Description of the problem
     The contents of a tab in a popup are not displayed.

Versions

lizmap-client 3.4.11
normal However, there is an empty attribute
image
normal Display even if the previous tab has an empty attribute
image
bug
The contents of the second tab will be displayed even if the third or later tabs are selected
image

QGIS server version, only if the section above doesn't mention the QGIS Server version

No response

Operating system

ubuntu

Browsers

Microsoft Edge

Browsers version

latest

Relevant log output

Management screen No error logs
@yamamoto-ryuzo
Copy link
Author

yamamoto-ryuzo commented Jun 5, 2022

The cause probably lies in the code created by drag-and-drop in QGIS.

<li class="active"><a href="#popup_dd_[% $id %]____" data-toggle="tab">管理者情報</a></li>

Each 4-byte character is represented by one under 2-byte character.

@yamamoto-ryuzo
Copy link
Author

At any rate, it worked when I used a title with a different number of characters.
Method of handling: Enter a space (one-byte character) after the letter so that the number of characters is different.
image

@yamamoto-ryuzo
Copy link
Author

</div><ul class="nav nav-tabs">
<li class="active"><a href="#popup_dd_[% $id %]____" `data-toggle="tab">管理者</a></li>
<li class=""><a href="#popup_dd_[% $id %]_____" `data-toggle="tab">路線認定</a></li>
<li class=""><a href="#popup_dd_[% $id %]______" data-toggle="tab">供用開始 `</a></li>
<li class=""><a href="#popup_dd_[% $id %]_______" data-toggle="tab">路線情報 `</a></li>
</ul>

@yamamoto-ryuzo
Copy link
Author

After thinking about it, I realized it was a problem with the plugin, so I ISSUE it there.
3liz/lizmap-plugin#424

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant