Title: Invalid unicode output · Issue #1576 · prometheus/client_java · GitHub
Open Graph Title: Invalid unicode output · Issue #1576 · prometheus/client_java
X Title: Invalid unicode output · Issue #1576 · prometheus/client_java
Description: If I do this: PrometheusRegistry registry = new PrometheusRegistry(); Counter.builder() .name("test_我喜欢茶") .labelNames("test") .register(registry) .labelValues("test_我喜欢茶").inc(); String accept = OpenMetricsTextFormatWriter.CONTENT_TYPE ...
Open Graph Description: If I do this: PrometheusRegistry registry = new PrometheusRegistry(); Counter.builder() .name("test_我喜欢茶") .labelNames("test") .register(registry) .labelValues("test_我喜欢茶").inc(); String accept = O...
X Description: If I do this: PrometheusRegistry registry = new PrometheusRegistry(); Counter.builder() .name("test_我喜欢茶") .labelNames("test") .register(registry) .labelValues("test_我喜欢茶&q...
Opengraph URL: https://github.com/prometheus/client_java/issues/1576
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid unicode output","articleBody":"If I do this:\n```java\nPrometheusRegistry registry = new PrometheusRegistry();\nCounter.builder()\n .name(\"test_我喜欢茶\")\n .labelNames(\"test\")\n .register(registry)\n .labelValues(\"test_我喜欢茶\").inc();\nString accept = OpenMetricsTextFormatWriter.CONTENT_TYPE + \"; escaping=allow-utf-8\";\nExpositionFormats.init().findWriter(accept).write(System.out, registry.scrape(), EscapingScheme.fromAcceptHeader(accept));\n```\nI get this:\n```\n# TYPE \"test_我喜欢茶\" counter\n{\"test_我喜欢茶_total\",test=\"test_我喜欢茶\"} 1.0\n# EOF\n```\nIf I remove the non-ascii characters (still UTF-8 allowed), I get the usual output:\n```\n# TYPE test counter\ntest_total{test=\"test\"} 1.0\n# EOF\n```\nIs this expected?","author":{"url":"https://github.com/jonatan-ivanov","@type":"Person","name":"jonatan-ivanov"},"datePublished":"2025-09-19T02:56:00Z","url":"https://github.com/prometheus/client_java/issues/1576"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6560f5cd-1810-e7df-860f-0b0d539ea3e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C154:2BB8CA:39E0A4:4D01A0:6AFBBBFB |
| html-safe-nonce | 60a09992cad92136f992faf9f04a81e0f2b003245366adf30e84449bd8e8e6d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTU0OjJCQjhDQTozOUUwQTQ6NEQwMUEwOjZBRkJCQkZCIiwidmlzaXRvcl9pZCI6IjI2MDQ2ODY0NzQ2ODcwMDM2NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2ac80470f6939c500b1a8d10b8f40b3788b2e2ecc778b4ae9782e57162c2ac80 |
| hovercard-subject-tag | issue:3432535749 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/prometheus/client_java/1576/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5615b7311e4fd92c0c81899c30856475b7475907490de45a9d294e5b4b05f79f/prometheus/client_java/issues/1576 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5615b7311e4fd92c0c81899c30856475b7475907490de45a9d294e5b4b05f79f/prometheus/client_java/issues/1576 |
| og:image:alt | If I do this: PrometheusRegistry registry = new PrometheusRegistry(); Counter.builder() .name("test_我喜欢茶") .labelNames("test") .register(registry) .labelValues("test_我喜欢茶").inc(); String accept = O... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jonatan-ivanov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c |
| turbo-cache-control | no-preview |
| go-import | github.com/prometheus/client_java git https://github.com/prometheus/client_java.git |
| octolytics-dimension-user_id | 3380462 |
| octolytics-dimension-user_login | prometheus |
| octolytics-dimension-repository_id | 7997879 |
| octolytics-dimension-repository_nwo | prometheus/client_java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7997879 |
| octolytics-dimension-repository_network_root_nwo | prometheus/client_java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4cce0e99cf61481a318ff12c2e8580153a6c7c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width