I'm having difficulty displaying CJK fonts in a glossary with bib2gls. I'm using MikTeX, which I think may produce different results to TeXLive. Here's a MWE:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage[record,style=indexgroup,nomain]{glossaries-extra}
\newglossary*{japanese}{Japanese to English}
\newglossary*{english}{English to Japanese}
\newrobustcmd{\cjkname}[1]{\begin{CJK}{UTF8}{ipxm}#1\end{CJK}}
\glsnoexpandfields
\newcommand*{\englishlettergroup}[1]{#1}
\newcommand*{\japaneselettergroup}[1]{\cjkname{#1}}
\newcommand*{\bibglslettergrouptitle}[4]{\unexpanded{\csuse{#4lettergroup}{#1}}}
\GlsXtrLoadResources[
src=testcjk2,% bib file
sort={ja-JP},% locale used to sort primary entries
dual-sort={en-GB},% locale used to sort secondary entries
type=japanese,% put the primary entries in the 'japanese' glossary
dual-type=english% put the dual entries in the 'english' glossary
]
\begin{document}
\begin{CJK}{UTF8}{ipxm}日本語はだいじょうぶ\end{CJK}
Japanese: \gls{squareroot}
English: \gls{dual.squareroot}
\printunsrtglossaries
\end{document}
Where the file testcjk2.bib is
@dualentry{squareroot,
name={\cjkname{ルート}},
description={square root}
}
The MWE comes from an answer here. The resulting document looks as shown below. The Japanese text from \begin{CJK}{UTF8}{ipxm}日本語はだいじょうぶ\end{CJK} displays fine, but that from the .bib file does not. Thanks in advance.

CJKuft8does already load[uft8]{inputenc}. – gusbrs Apr 26 '18 at 00:21% Encoding: UTF-8at the start of the.bibfile. – Nicola Talbot Apr 26 '18 at 10:19