Compare commits

..

4 Commits

Author SHA1 Message Date
af8e278858 Fixed unicode support for uploaded file.
Code cleaning.
2015-11-05 21:24:24 +01:00
b6129397a2 Use unicode output for WSF_DEBUG_HANDLER. 2015-11-05 13:55:33 +01:00
26b7052773 Code cleaning, WSF_STRING is reusing WSF_PERCENT_ENCODER. 2015-11-05 00:38:43 +01:00
941281e3ed Fixed various unicode issue related to query and form parameters.
Especially for the multipart/form-data encoding.
Factorized code related to smart parameters computing (handling list , table, ...) in WSF_VALUE_UTILITIES.
Fixed an issue with percent_encoded_path_info computation from request_uri.
Fixed issue with cookie addition having same cookie name.
2015-11-05 00:35:12 +01:00
3 changed files with 17 additions and 4 deletions

View File

@@ -410,7 +410,11 @@ feature {NONE} -- Implementation
local
utf: UTF_CONVERTER
do
a_output.append (utf.utf_32_string_to_utf_8_string_8 (s))
--if s.is_valid_as_string_8 then
--a_output.append (s.as_string_8)
--else
a_output.append (utf.utf_32_string_to_utf_8_string_8 (s))
--end
end
feature -- Constants

View File

@@ -21,7 +21,6 @@ inherit
feature -- Smart parameter identification
add_utf_8_string_value_to_table (a_utf_8_name: READABLE_STRING_8; a_utf_8_value: READABLE_STRING_8; a_table: HASH_TABLE [WSF_VALUE, READABLE_STRING_GENERAL])
-- Add a utf-8 string value `a_utf_8_value' associated with name `a_utf_8_name' to `a_table'.
local
utf: UTF_CONVERTER
n,v: READABLE_STRING_32
@@ -32,7 +31,6 @@ feature -- Smart parameter identification
end
add_percent_encoded_string_value_to_table (a_encoded_name: READABLE_STRING_8; a_encoded_value: READABLE_STRING_8; a_table: HASH_TABLE [WSF_VALUE, READABLE_STRING_GENERAL])
-- Add a percent-encoded string value `a_encoded_value' associated with name `a_encoded_name' to `a_table'.
local
v: WSF_STRING
do
@@ -41,7 +39,6 @@ feature -- Smart parameter identification
end
add_value_to_table (a_name: READABLE_STRING_GENERAL; a_value: WSF_VALUE; a_table: HASH_TABLE [WSF_VALUE, READABLE_STRING_GENERAL])
-- Add value `a_value' associated with unicode name `a_name' to `a_table'.
local
l_decoded_name: STRING_32
l_encoded_name: READABLE_STRING_8

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-14-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-14-0 http://www.eiffel.com/developers/xml/configuration-1-14-0.xsd" name="tests" uuid="C68BD5DC-F756-484E-A9FE-F2D1FD432B2A">
<target name="tests">
<root class="ANY" feature="default_create"/>
<setting name="console_application" value="false"/>
<setting name="concurrency" value="none"/>
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
<library name="feed" location="..\feed.ecf"/>
<library name="testing" location="$ISE_LIBRARY\library\testing\testing.ecf"/>
<tests name="src" location=".\" recursive="true"/>
</target>
</system>