René's URL Explorer Experiment


Title: Fix NoMethodError when encoding with invalid: :replace option by khasinski · Pull Request #9182 · jruby/jruby · GitHub

Open Graph Title: Fix NoMethodError when encoding with invalid: :replace option by khasinski · Pull Request #9182 · jruby/jruby

X Title: Fix NoMethodError when encoding with invalid: :replace option by khasinski · Pull Request #9182 · jruby/jruby

Description: Summary Fixes NoMethodError: undefined method '[]' for nil when encoding a string with invalid: :replace option but without undef: :replace Now correctly raises Encoding::UndefinedConversionError ...

Open Graph Description: Summary Fixes NoMethodError: undefined method '[]' for nil when encoding a string with invalid: :replace option but without undef: :replace Now correctly raises Encoding::UndefinedConversi...

X Description: Summary Fixes NoMethodError: undefined method '[]' for nil when encoding a string with invalid: :replace option but without undef: :replace Now correctly raises Encoding::Undefined...

Opengraph URL: https://github.com/jruby/jruby/pull/9182

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:56e782c3-ec74-e75e-f894-3ca4565300cc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEE2A:2105AF:ECBA86:13F86A7:696E9533
html-safe-nonceffd1c710c0b09184919c3420b0ae8b3b3627835dc49098144501ed77ac4f800a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTJBOjIxMDVBRjpFQ0JBODY6MTNGODZBNzo2OTZFOTUzMyIsInZpc2l0b3JfaWQiOiIyOTk4MzY5OTQ1ODgwNzk0NDE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaccd259c9e5645ea9fd2de49c51506a52d6f5ae4258a82f24d949176455b8effeb
hovercard-subject-tagpull_request:3185598827
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/jruby/jruby/9182/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/eb106f9449a7525690db40db4dc6fb4b5965cbc49560e9be76b87306c140800e/jruby/jruby/pull/9182
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eb106f9449a7525690db40db4dc6fb4b5965cbc49560e9be76b87306c140800e/jruby/jruby/pull/9182
og:image:altSummary Fixes NoMethodError: undefined method '[]' for nil when encoding a string with invalid: :replace option but without undef: :replace Now correctly raises Encoding::UndefinedConversi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekhasinski
hostnamegithub.com
expected-hostnamegithub.com
Nonefdad15fd2ad43212aa8b8be5f2c2725550f8374ceeeb154a999ad9145b43f3f7
turbo-cache-controlno-preview
go-importgithub.com/jruby/jruby git https://github.com/jruby/jruby.git
octolytics-dimension-user_id55687
octolytics-dimension-user_loginjruby
octolytics-dimension-repository_id168370
octolytics-dimension-repository_nwojruby/jruby
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id168370
octolytics-dimension-repository_network_root_nwojruby/jruby
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release27b23bc056eb973d350fc95afc848757edb9e7a9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/jruby/jruby/pull/9182#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjruby%2Fjruby%2Fpull%2F9182
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjruby%2Fjruby%2Fpull%2F9182
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=jruby%2Fjruby
Reloadhttps://patch-diff.githubusercontent.com/jruby/jruby/pull/9182
Reloadhttps://patch-diff.githubusercontent.com/jruby/jruby/pull/9182
Reloadhttps://patch-diff.githubusercontent.com/jruby/jruby/pull/9182
jruby https://patch-diff.githubusercontent.com/jruby
jrubyhttps://patch-diff.githubusercontent.com/jruby/jruby
Please reload this pagehttps://patch-diff.githubusercontent.com/jruby/jruby/pull/9182
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fjruby%2Fjruby
Fork 943 https://patch-diff.githubusercontent.com/login?return_to=%2Fjruby%2Fjruby
Star 3.9k https://patch-diff.githubusercontent.com/login?return_to=%2Fjruby%2Fjruby
Code https://patch-diff.githubusercontent.com/jruby/jruby
Issues 827 https://patch-diff.githubusercontent.com/jruby/jruby/issues
Pull requests 111 https://patch-diff.githubusercontent.com/jruby/jruby/pulls
Discussions https://patch-diff.githubusercontent.com/jruby/jruby/discussions
Actions https://patch-diff.githubusercontent.com/jruby/jruby/actions
Projects 0 https://patch-diff.githubusercontent.com/jruby/jruby/projects
Wiki https://patch-diff.githubusercontent.com/jruby/jruby/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/jruby/jruby/security
Please reload this pagehttps://patch-diff.githubusercontent.com/jruby/jruby/pull/9182
Insights https://patch-diff.githubusercontent.com/jruby/jruby/pulse
Code https://patch-diff.githubusercontent.com/jruby/jruby
Issues https://patch-diff.githubusercontent.com/jruby/jruby/issues
Pull requests https://patch-diff.githubusercontent.com/jruby/jruby/pulls
Discussions https://patch-diff.githubusercontent.com/jruby/jruby/discussions
Actions https://patch-diff.githubusercontent.com/jruby/jruby/actions
Projects https://patch-diff.githubusercontent.com/jruby/jruby/projects
Wiki https://patch-diff.githubusercontent.com/jruby/jruby/wiki
Security https://patch-diff.githubusercontent.com/jruby/jruby/security
Insights https://patch-diff.githubusercontent.com/jruby/jruby/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fjruby%2Fjruby%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fjruby%2Fjruby%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/jruby/jruby/pull/9182#issue-comment-box
khasinskihttps://patch-diff.githubusercontent.com/khasinski
jruby:masterhttps://patch-diff.githubusercontent.com/jruby/jruby/tree/master
khasinski:fix-encoding-undefined-conversion-errorhttps://patch-diff.githubusercontent.com/khasinski/jruby/tree/fix-encoding-undefined-conversion-error
Fix NoMethodError when encoding with invalid: :replace option https://patch-diff.githubusercontent.com/jruby/jruby/pull/9182#top
khasinskihttps://patch-diff.githubusercontent.com/khasinski
jruby:masterhttps://patch-diff.githubusercontent.com/jruby/jruby/tree/master
khasinski:fix-encoding-undefined-conversion-errorhttps://patch-diff.githubusercontent.com/khasinski/jruby/tree/fix-encoding-undefined-conversion-error
Conversation 0 https://patch-diff.githubusercontent.com/jruby/jruby/pull/9182
Commits 1 https://patch-diff.githubusercontent.com/jruby/jruby/pull/9182/commits
Checks 77 https://patch-diff.githubusercontent.com/jruby/jruby/pull/9182/checks
Files changed https://patch-diff.githubusercontent.com/jruby/jruby/pull/9182/files
Please reload this pagehttps://patch-diff.githubusercontent.com/jruby/jruby/pull/9182
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/jruby/jruby/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/khasinski
khasinskihttps://patch-diff.githubusercontent.com/khasinski
Jan 18, 2026https://patch-diff.githubusercontent.com/jruby/jruby/pull/9182#issue-3827125941
#9009https://github.com/jruby/jruby/issues/9009
Please reload this pagehttps://patch-diff.githubusercontent.com/jruby/jruby/pull/9182
https://patch-diff.githubusercontent.com/khasinski
Fix NoMethodError when encoding with invalid: :replace optionhttps://patch-diff.githubusercontent.com/jruby/jruby/pull/9182/commits/d66b260ad5cec6a8175b8a413c838371f7adf393
d66b260https://patch-diff.githubusercontent.com/jruby/jruby/pull/9182/commits/d66b260ad5cec6a8175b8a413c838371f7adf393
jruby#9009https://github.com/jruby/jruby/issues/9009
https://patch-diff.githubusercontent.com/khasinski
khasinskihttps://patch-diff.githubusercontent.com/khasinski
force-pushedhttps://patch-diff.githubusercontent.com/jruby/jruby/compare/d756e3f403ef8bbf854cd61906a671331562d81f..d66b260ad5cec6a8175b8a413c838371f7adf393
d756e3fhttps://patch-diff.githubusercontent.com/jruby/jruby/commit/d756e3f403ef8bbf854cd61906a671331562d81f
d66b260https://patch-diff.githubusercontent.com/jruby/jruby/commit/d66b260ad5cec6a8175b8a413c838371f7adf393
Compare https://patch-diff.githubusercontent.com/jruby/jruby/compare/d756e3f403ef8bbf854cd61906a671331562d81f..d66b260ad5cec6a8175b8a413c838371f7adf393
January 18, 2026 18:37https://patch-diff.githubusercontent.com/jruby/jruby/pull/9182#event-22123685813
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjruby%2Fjruby%2Fpull%2F9182
Encoding a string with undefined chars fails with NoMethodError https://github.com/jruby/jruby/issues/9009
Please reload this pagehttps://patch-diff.githubusercontent.com/jruby/jruby/pull/9182
https://patch-diff.githubusercontent.com/khasinski
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.