You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "nmalin (via GitHub)" <gi...@apache.org> on 2024/11/05 08:59:04 UTC
[PR] Improved: Truncate encoded string (OFBIZ-13167) [ofbiz-framework]
nmalin opened a new pull request, #844:
URL: https://github.com/apache/ofbiz-framework/pull/844
On model form, when you use a field description with a text size like :
****
<form...>
<field name="myfield" ...><display size="10"/></field>
</form>
****
and your field myField contains a string with a special character like "my char é, so bad truncate", the widget rendering displays "my char &e..." because when truncate is executed, the string is encoded and some chars are encoded : "my char &eacut;, so bad truncate".
The size between the encoded string and the displayed string are different. So to fix this, we implemented a new method to truncate the content. This method identify each special char as one char, and truncate.
"my char é, so bad truncate" encoded to "my char &eacut;, so bad truncate" become "my char &eacut;..." and not "my char &e..."
Thanks: Charles Steltzlen who help to solve it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improved: Truncate encoded string (OFBIZ-13167) [ofbiz-framework]
Posted by "nmalin (via GitHub)" <gi...@apache.org>.
nmalin merged PR #844:
URL: https://github.com/apache/ofbiz-framework/pull/844
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improved: Truncate encoded string (OFBIZ-13167) [ofbiz-framework]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #844:
URL: https://github.com/apache/ofbiz-framework/pull/844#issuecomment-2456598486
## [](https://sonarcloud.io/dashboard?id=apache_ofbiz-framework&pullRequest=844) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_ofbiz-framework&pullRequest=844&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_ofbiz-framework&pullRequest=844&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_ofbiz-framework&pullRequest=844&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_ofbiz-framework&pullRequest=844&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_ofbiz-framework&pullRequest=844&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache_ofbiz-framework&pullRequest=844)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org