invalid byte 2 of 2-byte UTF-8 sequence.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

invalid byte 2 of 2-byte UTF-8 sequence.

m.nawras

Dear all,
I got the following error when I tried to write Arabic character in the xhtml
file, I know that all handling are by using UTF-8 but why I have this error
thanks in advance


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: invalid byte 2 of 2-byte UTF-8 sequence.

Erik Bruchez
Administrator
Usually this means that the character encoding used for a file does  
not match the XML declaration's encoding.

You need to make sure that your editor knows that the file uses a  
UTF-8 encoding. Not all editors know how to do that. Good ones do!

-Erik

On Apr 10, 2008, at 7:26 AM, <[hidden email]> <[hidden email]
 > wrote:

>
> Dear all,
> I got the following error when I tried to write Arabic character in  
> the xhtml
> file, I know that all handling are by using UTF-8 but why I have  
> this error
> thanks in advance
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: invalid byte 2 of 2-byte UTF-8 sequence.

m.nawras
Thanks for your response, do you recommend any editor to do this job

Thanks

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]]
Sent: Friday, April 11, 2008 2:16 AM
To: [hidden email]
Subject: [ops-users] Re: invalid byte 2 of 2-byte UTF-8 sequence.

Usually this means that the character encoding used for a file does  
not match the XML declaration's encoding.

You need to make sure that your editor knows that the file uses a  
UTF-8 encoding. Not all editors know how to do that. Good ones do!

-Erik

On Apr 10, 2008, at 7:26 AM, <[hidden email]>
<[hidden email]
 > wrote:

>
> Dear all,
> I got the following error when I tried to write Arabic character in  
> the xhtml
> file, I know that all handling are by using UTF-8 but why I have  
> this error
> thanks in advance
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: invalid byte 2 of 2-byte UTF-8 sequence.

Erik Bruchez
Administrator
Not particularly. Here at Orbeon we use IntelliJ, the Java IDE, which  
has decent XML support.

You can also use XML editors like Oxigen.

Most text editors should have a way to either support XML correctly,  
or at least manually set the character encoding.

-Erik

On Apr 11, 2008, at 4:40 AM, Mohammad wrote:

> Thanks for your response, do you recommend any editor to do this job
>
> Thanks
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]]
> Sent: Friday, April 11, 2008 2:16 AM
> To: [hidden email]
> Subject: [ops-users] Re: invalid byte 2 of 2-byte UTF-8 sequence.
>
> Usually this means that the character encoding used for a file does
> not match the XML declaration's encoding.
>
> You need to make sure that your editor knows that the file uses a
> UTF-8 encoding. Not all editors know how to do that. Good ones do!
>
> -Erik
>
> On Apr 10, 2008, at 7:26 AM, <[hidden email]>
> <[hidden email]
>> wrote:
>>
>> Dear all,
>> I got the following error when I tried to write Arabic character in
>> the xhtml
>> file, I know that all handling are by using UTF-8 but why I have
>> this error
>> thanks in advance
>>
>> --
>> You receive this message as a subscriber of the [hidden email]
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: invalid byte 2 of 2-byte UTF-8 sequence.

m.nawras

Thanks again for your support,
We fix this issue in order to support other language only you need to add
the language tag on the <head lang="ar">
And to change the page direction you add to body tag <body dir="rtl">


-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]]
Sent: Friday, April 11, 2008 6:42 PM
To: [hidden email]
Subject: [ops-users] Re: RE: Re: invalid byte 2 of 2-byte UTF-8 sequence.

Not particularly. Here at Orbeon we use IntelliJ, the Java IDE, which  
has decent XML support.

You can also use XML editors like Oxigen.

Most text editors should have a way to either support XML correctly,  
or at least manually set the character encoding.

-Erik

On Apr 11, 2008, at 4:40 AM, Mohammad wrote:

> Thanks for your response, do you recommend any editor to do this job
>
> Thanks
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]]
> Sent: Friday, April 11, 2008 2:16 AM
> To: [hidden email]
> Subject: [ops-users] Re: invalid byte 2 of 2-byte UTF-8 sequence.
>
> Usually this means that the character encoding used for a file does
> not match the XML declaration's encoding.
>
> You need to make sure that your editor knows that the file uses a
> UTF-8 encoding. Not all editors know how to do that. Good ones do!
>
> -Erik
>
> On Apr 10, 2008, at 7:26 AM, <[hidden email]>
> <[hidden email]
>> wrote:
>>
>> Dear all,
>> I got the following error when I tried to write Arabic character in
>> the xhtml
>> file, I know that all handling are by using UTF-8 but why I have
>> this error
>> thanks in advance
>>
>> --
>> You receive this message as a subscriber of the [hidden email]
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws