cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SaravananRamamoorthy <saravanan.ramamoorth...@gmail.com>
Subject Re: multi language support in cxf
Date Thu, 25 Mar 2010 07:08:33 GMT

Hi bimargulies,

The charset that we used in form page is UTF-8. How can I get the actual
value in JAX-RS.

Regards
Saravanan Ramamoorthy


bimargulies wrote:
> 
> 'Displays' doesn't tell us very much. Have you looked at the actual
> values of the characters? What is the character set of the form page?
> 
> On Tue, Mar 23, 2010 at 10:57 AM, SaravananRamamoorthy
> <saravanan.ramamoorthy.s@gmail.com> wrote:
>>
>> Hi Sergey,
>>
>> I have a form in which the user can enter chinese character. I used
>> formparam in JAX-RS, when I received the chinese character, it displays
>> only
>> '?' symbols. Is there anyway to read chinese characters in JAX-RS when
>> the
>> form is submitted with chinese character input.
>>
>> Regards
>> Saravanan Ramamoorthy
>>
>>
>>
>> Regards
>> Saravanan Ramamoorthy
>>
>> Sergey Beryozkin-5 wrote:
>>>
>>> Hi
>>>
>>> You probably want to set an Accept-Language header, and one way to do it
>>> is
>>> to use jarrs:languageMappings element, ex
>>>
>>> <jaxrs:languageMappings>
>>>       <entry key="en" value="en-us"/>
>>>       <!-- other entries for chineese, etc -->
>>> </jaxrs:languageMappings>
>>>
>>> and then append .en, etc to the URI, ex
>>> GET /resource.en
>>>
>>> Next, you can use an HttpHeaders context to get the value of the
>>> expected
>>> language and return an appropriate Response
>>>
>>> cheers, Sergey
>>>
>>>
>>> On Tue, Mar 23, 2010 at 11:47 AM, SaravananRamamoorthy <
>>> saravanan.ramamoorthy.s@gmail.com> wrote:
>>>
>>>>
>>>> Hi All,
>>>>
>>>> Does JAX-RS support multiple language?
>>>> Can we able to inject the chinese langues using queryparam?
>>>>
>>>> Please guide me to trigger out the solution.
>>>>
>>>> Regards
>>>> Saravanan Ramamoorthy
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/multi-language-support-in-cxf-tp27999720p27999720.html
>>>> Sent from the cxf-user mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/multi-language-support-in-cxf-tp27999720p28002133.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/multi-language-support-in-cxf-tp27999720p28024537.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message