Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test case for non UTF-8 characters in LDEV-4648 ticket. #2292

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions test/tickets/LDEV4648.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
component extends="org.lucee.cfml.test.LuceeTestCase" skip=true {
function run( testResults , testBox ) {
describe( title="Test case for non UTF-8 characters in LDEV-4648", body=function() {
it(title="checking URLDecode() function", body = function( currentSpec ) {
expect( Chr(23376) ).toBe( URLDecode('%8e%71', 'windows-31j') );
expect( Chr(23376) ).toBe( URLDecode('%8eq', 'windows-31j') );
expect( Chr(23376) ).toBe( URLDecode('%8e%71', 'Shift_JIS') );
expect( Chr(23376) ).toBe( URLDecode('%8eq', 'Shift_JIS') );
});
});
}
}