Index: trunk/BNC/src/RTCM3/ephEncoder.cpp
===================================================================
--- trunk/BNC/src/RTCM3/ephEncoder.cpp	(revision 6374)
+++ trunk/BNC/src/RTCM3/ephEncoder.cpp	(revision 6375)
@@ -95,5 +95,10 @@
 
   GPSADDBITS(12, 1019)
-  GPSADDBITS(6,eph._prn.number())
+  if (eph._prn.system() == 'J') {
+    GPSADDBITS(6,eph._prn.number() + PRN_QZSS_START - 1)
+  }
+  else {
+    GPSADDBITS(6,eph._prn.number())
+  }
   GPSADDBITS(10, eph._TOC.gpsw())
   GPSADDBITS(4, eph._ura)
