I created a plugin/component called "helloWorld".
The following message file was created(attached to this message):
ofbiz\ofbiz-framework\plugins\helloWorld\config/HelloWorldUiLabels.xml
In the generated labels file, my system only likes the lang="en" lines.
<value xml:lang="en">HelloWorld Application</value>
<value xml:lang="zh">HelloWorld应用程�</value>
<value xml:lang="zh-TW">HelloWorld應用程�</value>
I had this same problem when playing/testing with V16 also. V16 was done
on Java 8 u32, V18 was done on Java 8 u231.
Could be a issue on my windows(8.1) system? If I need too, I could try
this on a Fedora 29 box.
Thought this might be a simple know issue, possibly a config issue on my
end.
Robert Wynkoop
On Sun, Nov 3, 2019 at 3:18 AM Jacques Le Roux <[email protected]>
wrote:
> Hi Robert,
>
> What do you call "EN lines" and what is your "message file"
>
> Thanks
>
> Jacques
>
> Le 03/11/2019 à 03:39, Robert Wynkoop a écrit :
> > I created a test plugin / component. Without making any changes when I
> > tried to access it and get a resource bundle error.
> >
> > The log says: Invalid byte 3 of 3-byte UTF-8 sequence.
> >
> > Running release 18 branch.
> >
> > If I delete the non EN lines from the message file, it works.
> >
> > Local Dev environment is: Java 1.8 u231, Netbeans 8.2(for now)
> >
>
--
Robert Wynkoop
Google Voice: 314-380-0046
Cell: 314-606-3079
Home: 314-846-7638
2904 Woodbridge Estates Dr.
Saint Louis, MO 63129
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-properties.xsd">
<property key="HelloWorldApplication">
<value xml:lang="en">HelloWorld Application</value>
<value xml:lang="zh">HelloWorld应用程�?</value>
<value xml:lang="zh-TW">HelloWorld應用程�?</value>
</property>
<property key="HelloWorldCompanyName">
<value xml:lang="en">OFBiz: HelloWorld</value>
<value xml:lang="zh-TW">OFBiz: HelloWorld</value>
</property>
<property key="HelloWorldCompanySubtitle">
<value xml:lang="en">Part of the Apache OFBiz Family of Open Source Software</value>
<value xml:lang="it">Un modulo della famiglia di software open source Apache OFBiz</value>
<value xml:lang="zh">开�?软件OFBiz的组�?部分</value>
<value xml:lang="zh-TW">開�?軟體OFBiz的組�?部分</value>
</property>
<property key="HelloWorldViewPermissionError">
<value xml:lang="en">You are not allowed to view this page.</value>
<value xml:lang="zh">�?�?许你�?览这个页�?�。</value>
<value xml:lang="zh-TW">�?�?許您檢視這個�?�?�.</value>
</property>
</resource>